2022-01-06 10:09:26 +00: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 09:48:48 +00:00
|
|
|
aria-labelledby="mx_LabelledToggleSwitch_testid_1"
|
2022-01-06 10:09:26 +00: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 10:52:55 +00:00
|
|
|
<DocumentFragment>
|
2022-01-06 10:09:26 +00:00
|
|
|
<div
|
2023-02-22 10:52:55 +00:00
|
|
|
class="mx_SettingsTab"
|
2022-01-06 10:09:26 +00:00
|
|
|
>
|
|
|
|
<div
|
2023-02-22 10:52:55 +00:00
|
|
|
class="mx_SettingsTab_heading"
|
2022-01-06 10:09:26 +00:00
|
|
|
>
|
2023-02-22 10:52:55 +00:00
|
|
|
Visibility
|
2022-01-06 10:09:26 +00:00
|
|
|
</div>
|
2023-02-22 10:52:55 +00:00
|
|
|
<fieldset
|
|
|
|
class="mx_SettingsFieldset"
|
|
|
|
data-testid="access-fieldset"
|
2022-01-06 10:09:26 +00:00
|
|
|
>
|
2023-02-22 10:52:55 +00:00
|
|
|
<legend
|
|
|
|
class="mx_SettingsFieldset_legend"
|
2022-01-06 10:09:26 +00:00
|
|
|
>
|
2023-02-22 10:52:55 +00:00
|
|
|
Access
|
|
|
|
</legend>
|
2022-01-06 10:09:26 +00:00
|
|
|
<div
|
2023-02-22 10:52:55 +00:00
|
|
|
class="mx_SettingsFieldset_description"
|
2022-01-06 10:09:26 +00:00
|
|
|
>
|
2023-02-22 10:52:55 +00:00
|
|
|
Decide who can view and join mock-space.
|
2022-01-06 10:09:26 +00:00
|
|
|
</div>
|
2023-02-22 10:52:55 +00:00
|
|
|
<label
|
|
|
|
class="mx_StyledRadioButton mx_JoinRuleSettings_radioButton mx_StyledRadioButton_disabled mx_StyledRadioButton_checked"
|
2022-01-06 10:09:26 +00:00
|
|
|
>
|
2023-02-22 10:52:55 +00: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"
|
2022-01-06 10:09:26 +00:00
|
|
|
>
|
2023-02-22 10:52:55 +00:00
|
|
|
Private (invite only)
|
|
|
|
</div>
|
2022-01-06 10:09:26 +00:00
|
|
|
<div
|
2023-02-22 10:52:55 +00:00
|
|
|
class="mx_StyledRadioButton_spacer"
|
|
|
|
/>
|
|
|
|
</label>
|
|
|
|
<span
|
|
|
|
id="joinRule-invite-description"
|
|
|
|
>
|
|
|
|
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"
|
2022-01-06 10:09:26 +00:00
|
|
|
>
|
2023-02-22 10:52:55 +00:00
|
|
|
Public
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_StyledRadioButton_spacer"
|
|
|
|
/>
|
|
|
|
</label>
|
|
|
|
<span
|
|
|
|
id="joinRule-public-description"
|
|
|
|
>
|
|
|
|
Anyone can find and join.
|
|
|
|
</span>
|
|
|
|
<div
|
|
|
|
class="mx_SettingsTab_toggleWithDescription"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_SettingsFlag"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="mx_SettingsFlag_label"
|
|
|
|
>
|
2023-04-21 09:48:48 +00:00
|
|
|
<div
|
|
|
|
id="mx_LabelledToggleSwitch_testid_0"
|
|
|
|
>
|
|
|
|
Preview Space
|
|
|
|
</div>
|
2023-02-22 10:52:55 +00:00
|
|
|
</span>
|
2022-01-06 10:09:26 +00:00
|
|
|
<div
|
2023-02-22 10:52:55 +00:00
|
|
|
aria-checked="true"
|
|
|
|
aria-disabled="false"
|
2023-04-21 09:48:48 +00:00
|
|
|
aria-labelledby="mx_LabelledToggleSwitch_testid_0"
|
2023-02-22 10:52:55 +00:00
|
|
|
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_on mx_ToggleSwitch_enabled"
|
|
|
|
role="switch"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_ToggleSwitch_ball"
|
|
|
|
/>
|
|
|
|
</div>
|
2022-01-06 10:09:26 +00:00
|
|
|
</div>
|
2023-02-22 10:52:55 +00:00
|
|
|
<p>
|
|
|
|
Allow people to preview your space before they join.
|
|
|
|
<br />
|
|
|
|
<b>
|
|
|
|
Recommended for public spaces.
|
|
|
|
</b>
|
|
|
|
</p>
|
2022-01-06 10:09:26 +00:00
|
|
|
</div>
|
2023-02-22 10:52:55 +00:00
|
|
|
</fieldset>
|
|
|
|
</div>
|
|
|
|
</DocumentFragment>
|
2022-01-06 10:09:26 +00:00
|
|
|
`;
|