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
@@ -446,7 +446,7 @@ describe("<CreateRoomDialog />", () => {
|
||||
// Set room name and visibility.
|
||||
fireEvent.change(screen.getByLabelText("Name"), { target: { value: "Restricted Room" } });
|
||||
fireEvent.click(screen.getByLabelText("Room visibility"));
|
||||
fireEvent.click(screen.getByRole("option", { name: "Visible to space members" }));
|
||||
fireEvent.click(screen.getByRole("option", { name: "Standard" }));
|
||||
|
||||
fireEvent.click(screen.getByText("Create room"));
|
||||
await flushPromises();
|
||||
|
||||
+9
-9
@@ -21,16 +21,16 @@ exports[`<ManageRestrictedJoinRuleDialog /> should list spaces which are not par
|
||||
class="mx_Heading_h3 mx_Dialog_title"
|
||||
id="mx_BaseDialog_title"
|
||||
>
|
||||
Select spaces
|
||||
Manage spaces
|
||||
</h1>
|
||||
</div>
|
||||
<p>
|
||||
<span>
|
||||
Decide which spaces can access this room. If a space is selected, its members can find and join
|
||||
Spaces where members can join
|
||||
<strong>
|
||||
!roomId:server
|
||||
</strong>
|
||||
.
|
||||
without an invitation.
|
||||
</span>
|
||||
</p>
|
||||
<div
|
||||
@@ -70,7 +70,7 @@ exports[`<ManageRestrictedJoinRuleDialog /> should list spaces which are not par
|
||||
class="mx_ManageRestrictedJoinRuleDialog_section"
|
||||
>
|
||||
<h3>
|
||||
Other spaces you know
|
||||
Your spaces that do not contain this room
|
||||
</h3>
|
||||
<div
|
||||
class="mx_ManageRestrictedJoinRuleDialog_entry"
|
||||
@@ -165,7 +165,7 @@ exports[`<ManageRestrictedJoinRuleDialog /> should list spaces which are not par
|
||||
d="M12 17q.424 0 .713-.288A.97.97 0 0 0 13 16v-4a.97.97 0 0 0-.287-.713A.97.97 0 0 0 12 11a.97.97 0 0 0-.713.287A.97.97 0 0 0 11 12v4q0 .424.287.712.288.288.713.288m0-8q.424 0 .713-.287A.97.97 0 0 0 13 8a.97.97 0 0 0-.287-.713A.97.97 0 0 0 12 7a.97.97 0 0 0-.713.287A.97.97 0 0 0 11 8q0 .424.287.713Q11.576 9 12 9m0 13a9.7 9.7 0 0 1-3.9-.788 10.1 10.1 0 0 1-3.175-2.137q-1.35-1.35-2.137-3.175A9.7 9.7 0 0 1 2 12q0-2.075.788-3.9a10.1 10.1 0 0 1 2.137-3.175q1.35-1.35 3.175-2.137A9.7 9.7 0 0 1 12 2q2.075 0 3.9.788a10.1 10.1 0 0 1 3.175 2.137q1.35 1.35 2.137 3.175A9.7 9.7 0 0 1 22 12a9.7 9.7 0 0 1-.788 3.9 10.1 10.1 0 0 1-2.137 3.175q-1.35 1.35-3.175 2.137A9.7 9.7 0 0 1 12 22"
|
||||
/>
|
||||
</svg>
|
||||
You're removing all spaces. Access will default to invite only
|
||||
You're removing all authorised spaces. Access will default to invite only
|
||||
</div>
|
||||
<div
|
||||
class="mx_ManageRestrictedJoinRuleDialog_footer_buttons"
|
||||
@@ -234,16 +234,16 @@ exports[`<ManageRestrictedJoinRuleDialog /> should render empty state 1`] = `
|
||||
class="mx_Heading_h3 mx_Dialog_title"
|
||||
id="mx_BaseDialog_title"
|
||||
>
|
||||
Select spaces
|
||||
Manage spaces
|
||||
</h1>
|
||||
</div>
|
||||
<p>
|
||||
<span>
|
||||
Decide which spaces can access this room. If a space is selected, its members can find and join
|
||||
Spaces where members can join
|
||||
<strong>
|
||||
!roomId:server
|
||||
</strong>
|
||||
.
|
||||
without an invitation.
|
||||
</span>
|
||||
</p>
|
||||
<div
|
||||
@@ -302,7 +302,7 @@ exports[`<ManageRestrictedJoinRuleDialog /> should render empty state 1`] = `
|
||||
d="M12 17q.424 0 .713-.288A.97.97 0 0 0 13 16v-4a.97.97 0 0 0-.287-.713A.97.97 0 0 0 12 11a.97.97 0 0 0-.713.287A.97.97 0 0 0 11 12v4q0 .424.287.712.288.288.713.288m0-8q.424 0 .713-.287A.97.97 0 0 0 13 8a.97.97 0 0 0-.287-.713A.97.97 0 0 0 12 7a.97.97 0 0 0-.713.287A.97.97 0 0 0 11 8q0 .424.287.713Q11.576 9 12 9m0 13a9.7 9.7 0 0 1-3.9-.788 10.1 10.1 0 0 1-3.175-2.137q-1.35-1.35-2.137-3.175A9.7 9.7 0 0 1 2 12q0-2.075.788-3.9a10.1 10.1 0 0 1 2.137-3.175q1.35-1.35 3.175-2.137A9.7 9.7 0 0 1 12 2q2.075 0 3.9.788a10.1 10.1 0 0 1 3.175 2.137q1.35 1.35 2.137 3.175A9.7 9.7 0 0 1 22 12a9.7 9.7 0 0 1-.788 3.9 10.1 10.1 0 0 1-2.137 3.175q-1.35 1.35-3.175 2.137A9.7 9.7 0 0 1 12 22"
|
||||
/>
|
||||
</svg>
|
||||
You're removing all spaces. Access will default to invite only
|
||||
You're removing all authorised spaces. Access will default to invite only
|
||||
</div>
|
||||
<div
|
||||
class="mx_ManageRestrictedJoinRuleDialog_footer_buttons"
|
||||
|
||||
+1
-1
@@ -254,7 +254,7 @@ describe("<CallGuestLinkButton />", () => {
|
||||
sendStateSpy.mockClear();
|
||||
|
||||
container = getComponent(room).container;
|
||||
fireEvent.click(getByText(container, "Public"));
|
||||
fireEvent.click(getByText(container, "Anyone"));
|
||||
expect(sendStateSpy).toHaveBeenLastCalledWith(
|
||||
"!room:server.org",
|
||||
"m.room.join_rules",
|
||||
|
||||
+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();
|
||||
|
||||
|
||||
+1
-1
@@ -97,7 +97,7 @@ describe("<SpaceSettingsVisibilityTab />", () => {
|
||||
fireEvent.click(toggleButton);
|
||||
};
|
||||
const getGuestAccessToggle = ({ getByLabelText }: RenderResult) => getByLabelText("Enable guest access");
|
||||
const getHistoryVisibilityToggle = ({ getByLabelText }: RenderResult) => getByLabelText("Preview Space");
|
||||
const getHistoryVisibilityToggle = ({ getByLabelText }: RenderResult) => getByLabelText("Preview space");
|
||||
const getErrorMessage = ({ getByTestId }: RenderResult) => getByTestId("space-settings-error")?.textContent;
|
||||
|
||||
beforeEach(() => {
|
||||
|
||||
+10
-10
@@ -24,7 +24,7 @@ exports[`<SpaceSettingsVisibilityTab /> for a public space renders addresses sec
|
||||
<h2
|
||||
class="mx_Heading_h3"
|
||||
>
|
||||
Visibility
|
||||
Security & Privacy
|
||||
</h2>
|
||||
<div
|
||||
class="mx_SettingsSection_subSections"
|
||||
@@ -67,7 +67,7 @@ exports[`<SpaceSettingsVisibilityTab /> for a public space renders addresses sec
|
||||
<div
|
||||
class="mx_StyledRadioButton_content"
|
||||
>
|
||||
Private (invite only)
|
||||
Invite only
|
||||
</div>
|
||||
<div
|
||||
class="mx_StyledRadioButton_spacer"
|
||||
@@ -96,7 +96,7 @@ exports[`<SpaceSettingsVisibilityTab /> for a public space renders addresses sec
|
||||
<div
|
||||
class="mx_StyledRadioButton_content"
|
||||
>
|
||||
Public
|
||||
Anyone
|
||||
</div>
|
||||
<div
|
||||
class="mx_StyledRadioButton_spacer"
|
||||
@@ -105,7 +105,7 @@ exports[`<SpaceSettingsVisibilityTab /> for a public space renders addresses sec
|
||||
<span
|
||||
id="joinRule-public-description"
|
||||
>
|
||||
Anyone can find and join.
|
||||
Anyone can join.
|
||||
</span>
|
||||
<form
|
||||
class="_root_19upo_16"
|
||||
@@ -149,7 +149,7 @@ exports[`<SpaceSettingsVisibilityTab /> for a public space renders addresses sec
|
||||
class="_label_19upo_59"
|
||||
for="_r_3j_"
|
||||
>
|
||||
Preview Space
|
||||
Preview space
|
||||
</label>
|
||||
<span
|
||||
class="_message_19upo_85 _help-message_19upo_91"
|
||||
@@ -396,7 +396,7 @@ exports[`<SpaceSettingsVisibilityTab /> renders container 1`] = `
|
||||
<h2
|
||||
class="mx_Heading_h3"
|
||||
>
|
||||
Visibility
|
||||
Security & Privacy
|
||||
</h2>
|
||||
<div
|
||||
class="mx_SettingsSection_subSections"
|
||||
@@ -440,7 +440,7 @@ exports[`<SpaceSettingsVisibilityTab /> renders container 1`] = `
|
||||
<div
|
||||
class="mx_StyledRadioButton_content"
|
||||
>
|
||||
Private (invite only)
|
||||
Invite only
|
||||
</div>
|
||||
<div
|
||||
class="mx_StyledRadioButton_spacer"
|
||||
@@ -468,7 +468,7 @@ exports[`<SpaceSettingsVisibilityTab /> renders container 1`] = `
|
||||
<div
|
||||
class="mx_StyledRadioButton_content"
|
||||
>
|
||||
Public
|
||||
Anyone
|
||||
</div>
|
||||
<div
|
||||
class="mx_StyledRadioButton_spacer"
|
||||
@@ -477,7 +477,7 @@ exports[`<SpaceSettingsVisibilityTab /> renders container 1`] = `
|
||||
<span
|
||||
id="joinRule-public-description"
|
||||
>
|
||||
Anyone can find and join.
|
||||
Anyone can join.
|
||||
</span>
|
||||
<form
|
||||
class="_root_19upo_16"
|
||||
@@ -510,7 +510,7 @@ exports[`<SpaceSettingsVisibilityTab /> renders container 1`] = `
|
||||
class="_label_19upo_59"
|
||||
for="_r_0_"
|
||||
>
|
||||
Preview Space
|
||||
Preview space
|
||||
</label>
|
||||
<span
|
||||
class="_message_19upo_85 _help-message_19upo_91"
|
||||
|
||||
Reference in New Issue
Block a user