2023-03-14 01:08:59 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`<RoomSettingsDialog /> Settings tabs renders default tabs correctly 1`] = `
|
|
|
|
NodeList [
|
|
|
|
<div
|
2023-04-25 11:31:54 +03:00
|
|
|
aria-controls="mx_tabpanel_ROOM_GENERAL_TAB"
|
|
|
|
aria-selected="true"
|
2023-03-14 01:08:59 +03:00
|
|
|
class="mx_AccessibleButton mx_TabbedView_tabLabel mx_TabbedView_tabLabel_active"
|
|
|
|
data-testid="settings-tab-ROOM_GENERAL_TAB"
|
2023-04-25 11:31:54 +03:00
|
|
|
role="tab"
|
2023-03-14 01:08:59 +03:00
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="mx_TabbedView_maskedIcon mx_RoomSettingsDialog_settingsIcon"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="mx_TabbedView_tabLabel_text"
|
2023-04-25 11:31:54 +03:00
|
|
|
id="mx_tabpanel_ROOM_GENERAL_TAB_label"
|
2023-03-14 01:08:59 +03:00
|
|
|
>
|
|
|
|
General
|
|
|
|
</span>
|
|
|
|
</div>,
|
|
|
|
<div
|
2023-04-25 11:31:54 +03:00
|
|
|
aria-controls="mx_tabpanel_ROOM_SECURITY_TAB"
|
|
|
|
aria-selected="false"
|
|
|
|
class="mx_AccessibleButton mx_TabbedView_tabLabel"
|
2023-03-14 01:08:59 +03:00
|
|
|
data-testid="settings-tab-ROOM_SECURITY_TAB"
|
2023-04-25 11:31:54 +03:00
|
|
|
role="tab"
|
|
|
|
tabindex="-1"
|
2023-03-14 01:08:59 +03:00
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="mx_TabbedView_maskedIcon mx_RoomSettingsDialog_securityIcon"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="mx_TabbedView_tabLabel_text"
|
2023-04-25 11:31:54 +03:00
|
|
|
id="mx_tabpanel_ROOM_SECURITY_TAB_label"
|
2023-03-14 01:08:59 +03:00
|
|
|
>
|
|
|
|
Security & Privacy
|
|
|
|
</span>
|
|
|
|
</div>,
|
|
|
|
<div
|
2023-04-25 11:31:54 +03:00
|
|
|
aria-controls="mx_tabpanel_ROOM_ROLES_TAB"
|
|
|
|
aria-selected="false"
|
|
|
|
class="mx_AccessibleButton mx_TabbedView_tabLabel"
|
2023-03-14 01:08:59 +03:00
|
|
|
data-testid="settings-tab-ROOM_ROLES_TAB"
|
2023-04-25 11:31:54 +03:00
|
|
|
role="tab"
|
|
|
|
tabindex="-1"
|
2023-03-14 01:08:59 +03:00
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="mx_TabbedView_maskedIcon mx_RoomSettingsDialog_rolesIcon"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="mx_TabbedView_tabLabel_text"
|
2023-04-25 11:31:54 +03:00
|
|
|
id="mx_tabpanel_ROOM_ROLES_TAB_label"
|
2023-03-14 01:08:59 +03:00
|
|
|
>
|
|
|
|
Roles & Permissions
|
|
|
|
</span>
|
|
|
|
</div>,
|
|
|
|
<div
|
2023-04-25 11:31:54 +03:00
|
|
|
aria-controls="mx_tabpanel_ROOM_NOTIFICATIONS_TAB"
|
|
|
|
aria-selected="false"
|
|
|
|
class="mx_AccessibleButton mx_TabbedView_tabLabel"
|
2023-03-14 01:08:59 +03:00
|
|
|
data-testid="settings-tab-ROOM_NOTIFICATIONS_TAB"
|
2023-04-25 11:31:54 +03:00
|
|
|
role="tab"
|
|
|
|
tabindex="-1"
|
2023-03-14 01:08:59 +03:00
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="mx_TabbedView_maskedIcon mx_RoomSettingsDialog_notificationsIcon"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="mx_TabbedView_tabLabel_text"
|
2023-04-25 11:31:54 +03:00
|
|
|
id="mx_tabpanel_ROOM_NOTIFICATIONS_TAB_label"
|
2023-03-14 01:08:59 +03:00
|
|
|
>
|
|
|
|
Notifications
|
|
|
|
</span>
|
|
|
|
</div>,
|
2023-03-15 23:54:12 +03:00
|
|
|
<div
|
2023-04-25 11:31:54 +03:00
|
|
|
aria-controls="mx_tabpanel_ROOM_POLL_HISTORY_TAB"
|
|
|
|
aria-selected="false"
|
|
|
|
class="mx_AccessibleButton mx_TabbedView_tabLabel"
|
2023-03-15 23:54:12 +03:00
|
|
|
data-testid="settings-tab-ROOM_POLL_HISTORY_TAB"
|
2023-04-25 11:31:54 +03:00
|
|
|
role="tab"
|
|
|
|
tabindex="-1"
|
2023-03-15 23:54:12 +03:00
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="mx_TabbedView_maskedIcon mx_RoomSettingsDialog_pollsIcon"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
class="mx_TabbedView_tabLabel_text"
|
2023-04-25 11:31:54 +03:00
|
|
|
id="mx_tabpanel_ROOM_POLL_HISTORY_TAB_label"
|
2023-03-15 23:54:12 +03:00
|
|
|
>
|
2023-03-29 01:13:51 +03:00
|
|
|
Poll history
|
2023-03-15 23:54:12 +03:00
|
|
|
</span>
|
|
|
|
</div>,
|
2023-03-14 01:08:59 +03: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 01:13:51 +03:00
|
|
|
Poll history
|
2023-03-14 01:08:59 +03: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>
|
|
|
|
`;
|