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
+7
-7
@@ -92,7 +92,7 @@ describe("<SecurityRoomSettingsTab />", () => {
|
||||
getComponent(room);
|
||||
|
||||
await waitFor(() => expect(screen.getByLabelText("Encrypted")).toBeChecked());
|
||||
fireEvent.click(screen.getByLabelText("Public"));
|
||||
fireEvent.click(screen.getByLabelText("Anyone"));
|
||||
|
||||
const modal = await screen.findByRole("dialog");
|
||||
|
||||
@@ -101,7 +101,7 @@ describe("<SecurityRoomSettingsTab />", () => {
|
||||
fireEvent.click(screen.getByText("Cancel"));
|
||||
|
||||
// join rule not updated
|
||||
expect(screen.getByLabelText("Private (invite only)").hasAttribute("checked")).toBeTruthy();
|
||||
expect(screen.getByLabelText("Invite only").hasAttribute("checked")).toBeTruthy();
|
||||
});
|
||||
|
||||
it("updates join rule", async () => {
|
||||
@@ -110,7 +110,7 @@ describe("<SecurityRoomSettingsTab />", () => {
|
||||
|
||||
getComponent(room);
|
||||
|
||||
fireEvent.click(screen.getByLabelText("Public"));
|
||||
fireEvent.click(screen.getByLabelText("Anyone"));
|
||||
|
||||
await flushPromises();
|
||||
|
||||
@@ -130,7 +130,7 @@ describe("<SecurityRoomSettingsTab />", () => {
|
||||
|
||||
getComponent(room);
|
||||
|
||||
fireEvent.click(screen.getByLabelText("Private (invite only)"));
|
||||
fireEvent.click(screen.getByLabelText("Invite only"));
|
||||
|
||||
await flushPromises();
|
||||
|
||||
@@ -173,7 +173,7 @@ describe("<SecurityRoomSettingsTab />", () => {
|
||||
]);
|
||||
|
||||
getComponent(room);
|
||||
fireEvent.click(screen.getByLabelText("Private (invite only)"));
|
||||
fireEvent.click(screen.getByLabelText("Invite only"));
|
||||
await flushPromises();
|
||||
// Ensure we don't make any changes
|
||||
expect(client.sendStateEvent).not.toHaveBeenCalled();
|
||||
@@ -185,7 +185,7 @@ describe("<SecurityRoomSettingsTab />", () => {
|
||||
setRoomStateEvents(room, JoinRule.Public, undefined, HistoryVisibility.WorldReadable);
|
||||
|
||||
getComponent(room);
|
||||
fireEvent.click(screen.getByLabelText("Private (invite only)"));
|
||||
fireEvent.click(screen.getByLabelText("Invite only"));
|
||||
await flushPromises();
|
||||
expect(client.sendStateEvent).toHaveBeenCalledWith(
|
||||
room.roomId,
|
||||
@@ -213,7 +213,7 @@ describe("<SecurityRoomSettingsTab />", () => {
|
||||
|
||||
getComponent(room);
|
||||
|
||||
fireEvent.click(screen.getByLabelText("Public"));
|
||||
fireEvent.click(screen.getByLabelText("Anyone"));
|
||||
|
||||
await flushPromises();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user