Localazy Download (#32714)
* [create-pull-request] automated change * Use a dedicated string for public access in settings. * Fix tests due to copy changes. * Fix tests due to copy changes. * Fix tests due to copy changes. * Fix tests due to copy changes. * Fix tests due to copy changes. * Updated visual tests screenshots due to copy changes. * Updated visual tests screenshots due to copy changes. --------- Co-authored-by: t3chguy <2403652+t3chguy@users.noreply.github.com> Co-authored-by: mxandreas <andreass@element.io>
@@ -48,7 +48,7 @@ test.describe("Create Knock Room", () => {
|
||||
await app.settings.openRoomSettings("Security & Privacy");
|
||||
|
||||
const settingsGroup = page.getByRole("group", { name: "Access" });
|
||||
await expect(settingsGroup.getByRole("radio", { name: "Private (invite only)" })).toBeChecked();
|
||||
await expect(settingsGroup.getByRole("radio", { name: "Invite only" })).toBeChecked();
|
||||
await settingsGroup.getByText("Ask to join").click();
|
||||
|
||||
// Room should have a knock join rule
|
||||
|
||||
@@ -64,7 +64,7 @@ test.describe("Roles & Permissions room settings tab", () => {
|
||||
const settingsGroupAccess = page.getByRole("group", { name: "Access" });
|
||||
const settingsGroupHistory = page.getByRole("group", { name: "Who can read history?" });
|
||||
|
||||
await settingsGroupAccess.getByText("Public").click();
|
||||
await settingsGroupAccess.getByText("Anyone", { exact: true }).click();
|
||||
await settingsGroupHistory.getByText("Anyone").click();
|
||||
|
||||
// Test that we have the warning appear.
|
||||
@@ -72,7 +72,7 @@ test.describe("Roles & Permissions room settings tab", () => {
|
||||
await expect(axe).toHaveNoViolations();
|
||||
await expect(settings).toMatchScreenshot("room-security-settings-world-readable.png");
|
||||
|
||||
await settingsGroupAccess.getByText("Private (invite only)").click();
|
||||
await settingsGroupAccess.getByText("Invite only").click();
|
||||
// Element should have automatically set the room to "sharing" history visibility
|
||||
await expect(settingsGroupHistory.getByText("Members (full history)")).toBeChecked();
|
||||
},
|
||||
@@ -87,7 +87,7 @@ test.describe("Roles & Permissions room settings tab", () => {
|
||||
const settingsGroupAccess = page.getByRole("group", { name: "Access" });
|
||||
const settingsGroupHistory = page.getByRole("group", { name: "Who can read history?" });
|
||||
|
||||
await settingsGroupAccess.getByText("Public").click();
|
||||
await settingsGroupAccess.getByText("Anyone", { exact: true }).click();
|
||||
await settingsGroupHistory.getByText("Anyone").click();
|
||||
|
||||
// De-op ourselves
|
||||
@@ -108,7 +108,7 @@ test.describe("Roles & Permissions room settings tab", () => {
|
||||
|
||||
await app.settings.switchTab("Security & Privacy");
|
||||
|
||||
await settingsGroupAccess.getByText("Private (invite only)").click();
|
||||
await settingsGroupAccess.getByText("Invite only").click();
|
||||
// Element should have automatically set the room to "sharing" history visibility
|
||||
const errorDialog = page.getByRole("heading", { name: "Cannot make room private" });
|
||||
await expect(errorDialog).toBeVisible();
|
||||
|
||||
@@ -384,7 +384,7 @@ test.describe("Spaces", () => {
|
||||
});
|
||||
await app.viewSpaceByName("My space");
|
||||
await page.getByLabel("Settings", { exact: true }).click();
|
||||
await app.settings.switchTab("Visibility");
|
||||
await app.settings.switchTab("Security & Privacy");
|
||||
|
||||
axe.disableRules("color-contrast"); // XXX: Inheriting colour contrast issues from room view.
|
||||
await expect(axe).toHaveNoViolations();
|
||||
|
||||
|
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 78 KiB |
|
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 87 KiB |
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 35 KiB |