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>
This commit is contained in:
co-authored by
t3chguy
mxandreas
parent
f550b41724
commit
00dd0c48ba
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user