2022-01-06 18:09:26 +08:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`<SpaceSettingsVisibilityTab /> for a public space Access renders guest access section toggle 1`] = `
|
|
|
|
<div
|
|
|
|
aria-checked="true"
|
|
|
|
aria-disabled="false"
|
2023-04-21 17:48:48 +08:00
|
|
|
aria-labelledby="mx_LabelledToggleSwitch_testid_1"
|
2022-01-06 18:09:26 +08:00
|
|
|
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on mx_ToggleSwitch_enabled"
|
|
|
|
role="switch"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_ToggleSwitch_ball"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`<SpaceSettingsVisibilityTab /> renders container 1`] = `
|
2023-02-22 18:52:55 +08:00
|
|
|
<DocumentFragment>
|
2022-01-06 18:09:26 +08:00
|
|
|
<div
|
2023-02-22 18:52:55 +08:00
|
|
|
class="mx_SettingsTab"
|
2022-01-06 18:09:26 +08:00
|
|
|
>
|
|
|
|
<div
|
2023-05-03 09:55:55 +08:00
|
|
|
class="mx_SettingsTab_sections"
|
2022-01-06 18:09:26 +08:00
|
|
|
>
|
|
|
|
<div
|
2023-05-03 09:55:55 +08:00
|
|
|
class="mx_SettingsSection"
|
2023-02-22 18:52:55 +08:00
|
|
|
>
|
2023-05-03 09:55:55 +08:00
|
|
|
<h2
|
2023-07-05 00:54:28 +08:00
|
|
|
class="mx_Heading_h3"
|
2022-01-06 18:09:26 +08:00
|
|
|
>
|
2023-05-03 09:55:55 +08:00
|
|
|
Visibility
|
|
|
|
</h2>
|
2023-02-22 18:52:55 +08:00
|
|
|
<div
|
2023-05-03 09:55:55 +08:00
|
|
|
class="mx_SettingsSection_subSections"
|
2023-02-22 18:52:55 +08:00
|
|
|
>
|
2023-05-03 09:55:55 +08:00
|
|
|
<fieldset
|
|
|
|
class="mx_SettingsFieldset"
|
|
|
|
data-testid="access-fieldset"
|
2023-02-22 18:52:55 +08:00
|
|
|
>
|
2023-05-03 09:55:55 +08:00
|
|
|
<legend
|
|
|
|
class="mx_SettingsFieldset_legend"
|
|
|
|
>
|
|
|
|
Access
|
|
|
|
</legend>
|
2023-04-21 17:48:48 +08:00
|
|
|
<div
|
2023-05-03 09:55:55 +08:00
|
|
|
class="mx_SettingsFieldset_description"
|
2023-04-21 17:48:48 +08:00
|
|
|
>
|
2023-05-24 10:37:10 +08:00
|
|
|
<div
|
|
|
|
class="mx_SettingsSubsection_text"
|
|
|
|
>
|
|
|
|
Decide who can view and join mock-space.
|
|
|
|
</div>
|
2023-04-21 17:48:48 +08:00
|
|
|
</div>
|
2023-05-29 06:20:44 +08:00
|
|
|
<div
|
|
|
|
class="mx_SettingsFieldset_content"
|
2023-05-03 09:55:55 +08:00
|
|
|
>
|
2023-05-29 06:20:44 +08:00
|
|
|
<label
|
|
|
|
class="mx_StyledRadioButton mx_JoinRuleSettings_radioButton mx_StyledRadioButton_disabled mx_StyledRadioButton_checked"
|
2023-05-03 09:55:55 +08:00
|
|
|
>
|
2023-05-29 06:20:44 +08:00
|
|
|
<input
|
|
|
|
aria-describedby="joinRule-invite-description"
|
|
|
|
checked=""
|
|
|
|
disabled=""
|
|
|
|
id="joinRule-invite"
|
|
|
|
name="joinRule"
|
|
|
|
type="radio"
|
|
|
|
value="invite"
|
|
|
|
/>
|
|
|
|
<div>
|
|
|
|
<div />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_content"
|
|
|
|
>
|
|
|
|
Private (invite only)
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_spacer"
|
|
|
|
/>
|
|
|
|
</label>
|
|
|
|
<span
|
|
|
|
id="joinRule-invite-description"
|
2023-05-03 09:55:55 +08:00
|
|
|
>
|
2023-05-29 06:20:44 +08:00
|
|
|
Only invited people can join.
|
|
|
|
</span>
|
|
|
|
<label
|
|
|
|
class="mx_StyledRadioButton mx_JoinRuleSettings_radioButton mx_StyledRadioButton_disabled"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
aria-describedby="joinRule-public-description"
|
|
|
|
disabled=""
|
|
|
|
id="joinRule-public"
|
|
|
|
name="joinRule"
|
|
|
|
type="radio"
|
|
|
|
value="public"
|
|
|
|
/>
|
|
|
|
<div>
|
|
|
|
<div />
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_content"
|
|
|
|
>
|
|
|
|
Public
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_spacer"
|
|
|
|
/>
|
|
|
|
</label>
|
|
|
|
<span
|
|
|
|
id="joinRule-public-description"
|
|
|
|
>
|
|
|
|
Anyone can find and join.
|
|
|
|
</span>
|
2023-05-03 09:55:55 +08:00
|
|
|
<div
|
2023-05-29 06:20:44 +08:00
|
|
|
class="mx_SettingsTab_toggleWithDescription"
|
2023-05-03 09:55:55 +08:00
|
|
|
>
|
2023-05-29 06:20:44 +08:00
|
|
|
<div
|
|
|
|
class="mx_SettingsFlag"
|
2023-05-03 09:55:55 +08:00
|
|
|
>
|
2023-05-29 06:20:44 +08:00
|
|
|
<span
|
|
|
|
class="mx_SettingsFlag_label"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
id="mx_LabelledToggleSwitch_testid_0"
|
|
|
|
>
|
|
|
|
Preview Space
|
|
|
|
</div>
|
|
|
|
</span>
|
2023-05-03 09:55:55 +08:00
|
|
|
<div
|
2023-05-29 06:20:44 +08:00
|
|
|
aria-checked="true"
|
|
|
|
aria-disabled="false"
|
|
|
|
aria-labelledby="mx_LabelledToggleSwitch_testid_0"
|
|
|
|
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on mx_ToggleSwitch_enabled"
|
|
|
|
role="switch"
|
|
|
|
tabindex="0"
|
2023-05-03 09:55:55 +08:00
|
|
|
>
|
2023-05-29 06:20:44 +08:00
|
|
|
<div
|
|
|
|
class="mx_ToggleSwitch_ball"
|
|
|
|
/>
|
2023-05-03 09:55:55 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-05-29 06:20:44 +08:00
|
|
|
<p>
|
|
|
|
Allow people to preview your space before they join.
|
|
|
|
<br />
|
2024-09-13 19:34:15 +08:00
|
|
|
<strong>
|
2023-05-29 06:20:44 +08:00
|
|
|
Recommended for public spaces.
|
2024-09-13 19:34:15 +08:00
|
|
|
</strong>
|
2023-05-29 06:20:44 +08:00
|
|
|
</p>
|
2023-05-03 09:55:55 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
2022-01-06 18:09:26 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-05-03 09:55:55 +08:00
|
|
|
</div>
|
2023-02-22 18:52:55 +08:00
|
|
|
</div>
|
|
|
|
</DocumentFragment>
|
2022-01-06 18:09:26 +08:00
|
|
|
`;
|