2023-03-13 23:08:59 +01:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`<RoomSettingsDialog /> Settings tabs renders default tabs correctly 1`] = `
|
|
|
|
NodeList [
|
2023-05-15 15:33:49 +02:00
|
|
|
<li
|
2023-04-25 10:31:54 +02:00
|
|
|
aria-controls="mx_tabpanel_ROOM_GENERAL_TAB"
|
|
|
|
aria-selected="true"
|
2023-03-13 23:08:59 +01:00
|
|
|
class="mx_AccessibleButton mx_TabbedView_tabLabel mx_TabbedView_tabLabel_active"
|
|
|
|
data-testid="settings-tab-ROOM_GENERAL_TAB"
|
2023-04-25 10:31:54 +02:00
|
|
|
role="tab"
|
2023-03-13 23:08:59 +01:00
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="mx_TabbedView_maskedIcon mx_RoomSettingsDialog_settingsIcon"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="mx_TabbedView_tabLabel_text"
|
2023-04-25 10:31:54 +02:00
|
|
|
id="mx_tabpanel_ROOM_GENERAL_TAB_label"
|
2023-03-13 23:08:59 +01:00
|
|
|
>
|
|
|
|
General
|
|
|
|
</span>
|
2023-05-15 15:33:49 +02:00
|
|
|
</li>,
|
|
|
|
<li
|
2023-04-25 10:31:54 +02:00
|
|
|
aria-controls="mx_tabpanel_ROOM_SECURITY_TAB"
|
|
|
|
aria-selected="false"
|
|
|
|
class="mx_AccessibleButton mx_TabbedView_tabLabel"
|
2023-03-13 23:08:59 +01:00
|
|
|
data-testid="settings-tab-ROOM_SECURITY_TAB"
|
2023-04-25 10:31:54 +02:00
|
|
|
role="tab"
|
|
|
|
tabindex="-1"
|
2023-03-13 23:08:59 +01:00
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="mx_TabbedView_maskedIcon mx_RoomSettingsDialog_securityIcon"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="mx_TabbedView_tabLabel_text"
|
2023-04-25 10:31:54 +02:00
|
|
|
id="mx_tabpanel_ROOM_SECURITY_TAB_label"
|
2023-03-13 23:08:59 +01:00
|
|
|
>
|
|
|
|
Security & Privacy
|
|
|
|
</span>
|
2023-05-15 15:33:49 +02:00
|
|
|
</li>,
|
|
|
|
<li
|
2023-04-25 10:31:54 +02:00
|
|
|
aria-controls="mx_tabpanel_ROOM_ROLES_TAB"
|
|
|
|
aria-selected="false"
|
|
|
|
class="mx_AccessibleButton mx_TabbedView_tabLabel"
|
2023-03-13 23:08:59 +01:00
|
|
|
data-testid="settings-tab-ROOM_ROLES_TAB"
|
2023-04-25 10:31:54 +02:00
|
|
|
role="tab"
|
|
|
|
tabindex="-1"
|
2023-03-13 23:08:59 +01:00
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="mx_TabbedView_maskedIcon mx_RoomSettingsDialog_rolesIcon"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="mx_TabbedView_tabLabel_text"
|
2023-04-25 10:31:54 +02:00
|
|
|
id="mx_tabpanel_ROOM_ROLES_TAB_label"
|
2023-03-13 23:08:59 +01:00
|
|
|
>
|
|
|
|
Roles & Permissions
|
|
|
|
</span>
|
2023-05-15 15:33:49 +02:00
|
|
|
</li>,
|
|
|
|
<li
|
2023-04-25 10:31:54 +02:00
|
|
|
aria-controls="mx_tabpanel_ROOM_NOTIFICATIONS_TAB"
|
|
|
|
aria-selected="false"
|
|
|
|
class="mx_AccessibleButton mx_TabbedView_tabLabel"
|
2023-03-13 23:08:59 +01:00
|
|
|
data-testid="settings-tab-ROOM_NOTIFICATIONS_TAB"
|
2023-04-25 10:31:54 +02:00
|
|
|
role="tab"
|
|
|
|
tabindex="-1"
|
2023-03-13 23:08:59 +01:00
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="mx_TabbedView_maskedIcon mx_RoomSettingsDialog_notificationsIcon"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="mx_TabbedView_tabLabel_text"
|
2023-04-25 10:31:54 +02:00
|
|
|
id="mx_tabpanel_ROOM_NOTIFICATIONS_TAB_label"
|
2023-03-13 23:08:59 +01:00
|
|
|
>
|
|
|
|
Notifications
|
|
|
|
</span>
|
2023-05-15 15:33:49 +02:00
|
|
|
</li>,
|
|
|
|
<li
|
2023-04-25 10:31:54 +02:00
|
|
|
aria-controls="mx_tabpanel_ROOM_POLL_HISTORY_TAB"
|
|
|
|
aria-selected="false"
|
|
|
|
class="mx_AccessibleButton mx_TabbedView_tabLabel"
|
2023-03-15 21:54:12 +01:00
|
|
|
data-testid="settings-tab-ROOM_POLL_HISTORY_TAB"
|
2023-04-25 10:31:54 +02:00
|
|
|
role="tab"
|
|
|
|
tabindex="-1"
|
2023-03-15 21:54:12 +01:00
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="mx_TabbedView_maskedIcon mx_RoomSettingsDialog_pollsIcon"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="mx_TabbedView_tabLabel_text"
|
2023-04-25 10:31:54 +02:00
|
|
|
id="mx_tabpanel_ROOM_POLL_HISTORY_TAB_label"
|
2023-03-15 21:54:12 +01:00
|
|
|
>
|
2023-03-29 00:13:51 +02:00
|
|
|
Poll history
|
2023-03-15 21:54:12 +01:00
|
|
|
</span>
|
2023-05-15 15:33:49 +02:00
|
|
|
</li>,
|
2023-03-13 23:08:59 +01:00
|
|
|
]
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`<RoomSettingsDialog /> poll history displays poll history when tab clicked 1`] = `
|
|
|
|
<div
|
|
|
|
class="mx_SettingsTab"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_PollHistory_content"
|
|
|
|
>
|
|
|
|
<h2
|
|
|
|
class="mx_Heading_h2 mx_PollHistory_header"
|
|
|
|
>
|
2023-03-29 00:13:51 +02:00
|
|
|
Poll history
|
2023-03-13 23:08:59 +01:00
|
|
|
</h2>
|
|
|
|
<div
|
|
|
|
class="mx_PollHistoryList"
|
|
|
|
>
|
|
|
|
<fieldset
|
|
|
|
class="mx_FilterTabGroup"
|
|
|
|
>
|
|
|
|
<label
|
|
|
|
data-testid="filter-tab-PollHistory_filter-ACTIVE"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
checked=""
|
|
|
|
name="PollHistory_filter"
|
|
|
|
type="radio"
|
|
|
|
value="ACTIVE"
|
|
|
|
/>
|
|
|
|
<span>
|
|
|
|
Active polls
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
<label
|
|
|
|
data-testid="filter-tab-PollHistory_filter-ENDED"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
name="PollHistory_filter"
|
|
|
|
type="radio"
|
|
|
|
value="ENDED"
|
|
|
|
/>
|
|
|
|
<span>
|
|
|
|
Past polls
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
</fieldset>
|
|
|
|
<div
|
|
|
|
class="mx_PollHistoryList_loading mx_PollHistoryList_noResultsYet"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_InlineSpinner"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
aria-label="Loading…"
|
|
|
|
class="mx_InlineSpinner_icon mx_Spinner_icon"
|
|
|
|
style="width: 16px; height: 16px;"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
Loading polls
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|