2023-05-18 08:30:55 +00:00
|
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
2023-05-19 10:34:55 +00:00
|
|
|
|
exports[`AppTile destroys non-persisted right panel widget on room change 1`] = `
|
|
|
|
|
<DocumentFragment>
|
|
|
|
|
<aside
|
2023-10-20 13:30:37 +00:00
|
|
|
|
class="mx_RightPanel"
|
2023-05-19 10:34:55 +00:00
|
|
|
|
id="mx_RightPanel"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_BaseCard mx_WidgetCard"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_BaseCard_header"
|
|
|
|
|
>
|
|
|
|
|
<div
|
2024-04-24 12:24:25 +00:00
|
|
|
|
aria-label="Close"
|
2023-05-19 10:34:55 +00:00
|
|
|
|
class="mx_AccessibleButton mx_BaseCard_close"
|
|
|
|
|
data-testid="base-card-close-button"
|
|
|
|
|
role="button"
|
|
|
|
|
tabindex="0"
|
|
|
|
|
/>
|
|
|
|
|
<div
|
2023-11-13 21:57:20 +00:00
|
|
|
|
class="mx_BaseCard_headerProp"
|
2023-05-19 10:34:55 +00:00
|
|
|
|
>
|
|
|
|
|
<div
|
2023-11-13 21:57:20 +00:00
|
|
|
|
class="mx_BaseCard_header_title"
|
|
|
|
|
>
|
|
|
|
|
<h4
|
|
|
|
|
class="mx_Heading_h4 mx_BaseCard_header_title_heading"
|
|
|
|
|
>
|
|
|
|
|
Example 1
|
|
|
|
|
</h4>
|
|
|
|
|
<div
|
|
|
|
|
aria-expanded="false"
|
|
|
|
|
aria-haspopup="true"
|
|
|
|
|
aria-label="Options"
|
|
|
|
|
class="mx_AccessibleButton mx_BaseCard_header_title_button--option"
|
|
|
|
|
role="button"
|
|
|
|
|
tabindex="0"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
2023-05-19 10:34:55 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_AppTileFullWidth"
|
|
|
|
|
id="1"
|
|
|
|
|
>
|
|
|
|
|
<div
|
2024-03-12 16:55:01 +00:00
|
|
|
|
class="mx_AppTileBody mx_AppTileBody--large"
|
2023-05-19 10:34:55 +00:00
|
|
|
|
>
|
|
|
|
|
<div
|
2023-06-01 15:17:28 +00:00
|
|
|
|
class="mx_AppTileBody_fadeInSpinner"
|
2023-05-19 10:34:55 +00:00
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_Spinner"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_Spinner_Msg"
|
|
|
|
|
>
|
|
|
|
|
Loading…
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
aria-label="Loading…"
|
|
|
|
|
class="mx_Spinner_icon"
|
|
|
|
|
data-testid="spinner"
|
|
|
|
|
role="progressbar"
|
|
|
|
|
style="width: 32px; height: 32px;"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</aside>
|
|
|
|
|
</DocumentFragment>
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`AppTile for a persistent app should render 1`] = `
|
|
|
|
|
<DocumentFragment>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_AppTile_mini"
|
|
|
|
|
id="1"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_AppTile_persistedWrapper"
|
|
|
|
|
>
|
|
|
|
|
<div />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</DocumentFragment>
|
|
|
|
|
`;
|
|
|
|
|
|
2023-05-18 08:30:55 +00:00
|
|
|
|
exports[`AppTile for a pinned widget should render 1`] = `
|
|
|
|
|
<DocumentFragment>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_AppTile"
|
|
|
|
|
id="1"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_AppTileMenuBar"
|
|
|
|
|
>
|
|
|
|
|
<span
|
|
|
|
|
class="mx_AppTileMenuBar_title"
|
|
|
|
|
style="pointer-events: none;"
|
|
|
|
|
>
|
|
|
|
|
<span>
|
2023-08-24 03:48:35 +00:00
|
|
|
|
<span
|
|
|
|
|
aria-label="Avatar"
|
2024-03-07 14:40:03 +00:00
|
|
|
|
class="_avatar_mcap2_17 mx_BaseAvatar mx_WidgetAvatar"
|
2023-08-24 03:48:35 +00:00
|
|
|
|
data-color="1"
|
2023-05-18 08:30:55 +00:00
|
|
|
|
data-testid="avatar-img"
|
2023-08-24 03:48:35 +00:00
|
|
|
|
data-type="round"
|
|
|
|
|
style="--cpd-avatar-size: 20px;"
|
|
|
|
|
>
|
|
|
|
|
<img
|
|
|
|
|
alt=""
|
2024-03-07 14:40:03 +00:00
|
|
|
|
class="_image_mcap2_50"
|
2023-08-24 03:48:35 +00:00
|
|
|
|
data-type="round"
|
|
|
|
|
height="20px"
|
|
|
|
|
loading="lazy"
|
|
|
|
|
referrerpolicy="no-referrer"
|
|
|
|
|
src="image-file-stub"
|
|
|
|
|
width="20px"
|
|
|
|
|
/>
|
|
|
|
|
</span>
|
2024-05-08 13:57:17 +00:00
|
|
|
|
<h3>
|
2023-05-18 08:30:55 +00:00
|
|
|
|
Example 1
|
2024-05-08 13:57:17 +00:00
|
|
|
|
</h3>
|
2023-05-18 08:30:55 +00:00
|
|
|
|
<span />
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
<span
|
|
|
|
|
class="mx_AppTileMenuBar_widgets"
|
|
|
|
|
>
|
|
|
|
|
<div
|
2024-04-24 12:24:25 +00:00
|
|
|
|
aria-label="Un-maximise"
|
2023-05-22 07:48:40 +00:00
|
|
|
|
class="mx_AccessibleButton mx_AppTileMenuBar_widgets_button"
|
2023-05-18 08:30:55 +00:00
|
|
|
|
role="button"
|
|
|
|
|
tabindex="0"
|
2023-05-22 07:48:40 +00:00
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_Icon mx_Icon_12"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
2023-05-18 08:30:55 +00:00
|
|
|
|
<div
|
2024-04-24 12:24:25 +00:00
|
|
|
|
aria-label="Minimise"
|
2023-05-22 07:48:40 +00:00
|
|
|
|
class="mx_AccessibleButton mx_AppTileMenuBar_widgets_button"
|
2023-05-18 08:30:55 +00:00
|
|
|
|
role="button"
|
|
|
|
|
tabindex="0"
|
2023-05-22 07:48:40 +00:00
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_Icon mx_Icon_12"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
2023-08-03 09:23:20 +00:00
|
|
|
|
<div
|
|
|
|
|
aria-expanded="false"
|
|
|
|
|
aria-haspopup="true"
|
|
|
|
|
aria-label="Options"
|
|
|
|
|
class="mx_AccessibleButton mx_AppTileMenuBar_widgets_button"
|
|
|
|
|
role="button"
|
|
|
|
|
tabindex="0"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_Icon mx_Icon_12"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
2023-05-18 08:30:55 +00:00
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_AppTile_persistedWrapper"
|
|
|
|
|
>
|
|
|
|
|
<div />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</DocumentFragment>
|
|
|
|
|
`;
|
2023-06-13 11:13:07 +00:00
|
|
|
|
|
2023-06-14 11:11:06 +00:00
|
|
|
|
exports[`AppTile for a pinned widget should render permission request 1`] = `
|
|
|
|
|
<DocumentFragment>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_AppTile"
|
|
|
|
|
id="1"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_AppTileMenuBar"
|
|
|
|
|
>
|
|
|
|
|
<span
|
|
|
|
|
class="mx_AppTileMenuBar_title"
|
|
|
|
|
style="pointer-events: none;"
|
|
|
|
|
>
|
|
|
|
|
<span>
|
2023-08-24 03:48:35 +00:00
|
|
|
|
<span
|
|
|
|
|
aria-label="Avatar"
|
2024-03-07 14:40:03 +00:00
|
|
|
|
class="_avatar_mcap2_17 mx_BaseAvatar mx_WidgetAvatar"
|
2023-08-24 03:48:35 +00:00
|
|
|
|
data-color="1"
|
2023-06-14 11:11:06 +00:00
|
|
|
|
data-testid="avatar-img"
|
2023-08-24 03:48:35 +00:00
|
|
|
|
data-type="round"
|
|
|
|
|
style="--cpd-avatar-size: 20px;"
|
|
|
|
|
>
|
|
|
|
|
<img
|
|
|
|
|
alt=""
|
2024-03-07 14:40:03 +00:00
|
|
|
|
class="_image_mcap2_50"
|
2023-08-24 03:48:35 +00:00
|
|
|
|
data-type="round"
|
|
|
|
|
height="20px"
|
|
|
|
|
loading="lazy"
|
|
|
|
|
referrerpolicy="no-referrer"
|
|
|
|
|
src="image-file-stub"
|
|
|
|
|
width="20px"
|
|
|
|
|
/>
|
|
|
|
|
</span>
|
2024-05-08 13:57:17 +00:00
|
|
|
|
<h3>
|
2023-06-14 11:11:06 +00:00
|
|
|
|
Example 1
|
2024-05-08 13:57:17 +00:00
|
|
|
|
</h3>
|
2023-06-14 11:11:06 +00:00
|
|
|
|
<span />
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
<span
|
|
|
|
|
class="mx_AppTileMenuBar_widgets"
|
|
|
|
|
>
|
|
|
|
|
<div
|
2024-04-24 12:24:25 +00:00
|
|
|
|
aria-label="Un-maximise"
|
2023-06-14 11:11:06 +00:00
|
|
|
|
class="mx_AccessibleButton mx_AppTileMenuBar_widgets_button"
|
|
|
|
|
role="button"
|
|
|
|
|
tabindex="0"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_Icon mx_Icon_12"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
2024-04-24 12:24:25 +00:00
|
|
|
|
aria-label="Minimise"
|
2023-06-14 11:11:06 +00:00
|
|
|
|
class="mx_AccessibleButton mx_AppTileMenuBar_widgets_button"
|
|
|
|
|
role="button"
|
|
|
|
|
tabindex="0"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_Icon mx_Icon_12"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
2023-08-03 09:23:20 +00:00
|
|
|
|
<div
|
|
|
|
|
aria-expanded="false"
|
|
|
|
|
aria-haspopup="true"
|
|
|
|
|
aria-label="Options"
|
|
|
|
|
class="mx_AccessibleButton mx_AppTileMenuBar_widgets_button"
|
|
|
|
|
role="button"
|
|
|
|
|
tabindex="0"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_Icon mx_Icon_12"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
2023-06-14 11:11:06 +00:00
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
2023-06-16 18:24:10 +00:00
|
|
|
|
class="mx_AppTileBody mx_AppTileBody--large"
|
2023-06-14 11:11:06 +00:00
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_AppPermission"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_AppPermission_content"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_AppPermission_content_bolder"
|
|
|
|
|
>
|
|
|
|
|
Widget added by
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<span
|
2024-03-07 14:40:03 +00:00
|
|
|
|
class="_avatar_mcap2_17 mx_BaseAvatar _avatar-imageless_mcap2_61"
|
2023-08-24 03:48:35 +00:00
|
|
|
|
data-color="1"
|
|
|
|
|
data-testid="avatar-img"
|
|
|
|
|
data-type="round"
|
2023-06-14 11:11:06 +00:00
|
|
|
|
role="presentation"
|
2023-08-24 03:48:35 +00:00
|
|
|
|
style="--cpd-avatar-size: 38px;"
|
2023-06-14 11:11:06 +00:00
|
|
|
|
>
|
2023-08-24 03:48:35 +00:00
|
|
|
|
u
|
2023-06-14 11:11:06 +00:00
|
|
|
|
</span>
|
|
|
|
|
<h4
|
|
|
|
|
class="mx_Heading_h4"
|
|
|
|
|
>
|
|
|
|
|
@userAnother
|
|
|
|
|
</h4>
|
|
|
|
|
<div />
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<span>
|
|
|
|
|
Using this widget may share data
|
|
|
|
|
<div
|
2023-08-09 08:39:48 +00:00
|
|
|
|
aria-describedby="mx_TooltipTarget_vY7Q4uEh"
|
2023-06-14 11:11:06 +00:00
|
|
|
|
class="mx_TextWithTooltip_target mx_TextWithTooltip_target--helpIcon"
|
|
|
|
|
tabindex="0"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_Icon mx_Icon_12"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
with example.com.
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
This widget may use cookies.
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_primary_sm"
|
|
|
|
|
role="button"
|
|
|
|
|
tabindex="0"
|
|
|
|
|
>
|
|
|
|
|
Continue
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</DocumentFragment>
|
|
|
|
|
`;
|
|
|
|
|
|
2023-06-13 11:13:07 +00:00
|
|
|
|
exports[`AppTile preserves non-persisted widget on container move 1`] = `
|
|
|
|
|
<DocumentFragment>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_AppsDrawer"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_AppsDrawer_resizer"
|
|
|
|
|
style="position: relative; user-select: auto; width: auto; height: 280px; max-height: 576px; min-height: 100px; box-sizing: border-box; flex-shrink: 0;"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_AppsContainer"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_AppTileFullWidth"
|
|
|
|
|
id="1"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_AppTileMenuBar"
|
|
|
|
|
>
|
|
|
|
|
<span
|
|
|
|
|
class="mx_AppTileMenuBar_title"
|
|
|
|
|
style="pointer-events: none;"
|
|
|
|
|
>
|
|
|
|
|
<span>
|
2023-08-24 03:48:35 +00:00
|
|
|
|
<span
|
|
|
|
|
aria-label="Avatar"
|
2024-03-07 14:40:03 +00:00
|
|
|
|
class="_avatar_mcap2_17 mx_BaseAvatar mx_WidgetAvatar"
|
2023-08-24 03:48:35 +00:00
|
|
|
|
data-color="1"
|
2023-06-13 11:13:07 +00:00
|
|
|
|
data-testid="avatar-img"
|
2023-08-24 03:48:35 +00:00
|
|
|
|
data-type="round"
|
|
|
|
|
style="--cpd-avatar-size: 20px;"
|
|
|
|
|
>
|
|
|
|
|
<img
|
|
|
|
|
alt=""
|
2024-03-07 14:40:03 +00:00
|
|
|
|
class="_image_mcap2_50"
|
2023-08-24 03:48:35 +00:00
|
|
|
|
data-type="round"
|
|
|
|
|
height="20px"
|
|
|
|
|
loading="lazy"
|
|
|
|
|
referrerpolicy="no-referrer"
|
|
|
|
|
src="image-file-stub"
|
|
|
|
|
width="20px"
|
|
|
|
|
/>
|
|
|
|
|
</span>
|
2024-05-08 13:57:17 +00:00
|
|
|
|
<h3>
|
2023-06-13 11:13:07 +00:00
|
|
|
|
Example 1
|
2024-05-08 13:57:17 +00:00
|
|
|
|
</h3>
|
2023-06-13 11:13:07 +00:00
|
|
|
|
<span />
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
<span
|
|
|
|
|
class="mx_AppTileMenuBar_widgets"
|
|
|
|
|
>
|
|
|
|
|
<div
|
2024-04-24 12:24:25 +00:00
|
|
|
|
aria-label="Maximise"
|
2023-06-13 11:13:07 +00:00
|
|
|
|
class="mx_AccessibleButton mx_AppTileMenuBar_widgets_button"
|
|
|
|
|
role="button"
|
|
|
|
|
tabindex="0"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_Icon mx_Icon_12"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
2024-04-24 12:24:25 +00:00
|
|
|
|
aria-label="Minimise"
|
2023-06-13 11:13:07 +00:00
|
|
|
|
class="mx_AccessibleButton mx_AppTileMenuBar_widgets_button"
|
|
|
|
|
role="button"
|
|
|
|
|
tabindex="0"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_Icon mx_Icon_12"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
2023-08-03 09:23:20 +00:00
|
|
|
|
<div
|
|
|
|
|
aria-expanded="false"
|
|
|
|
|
aria-haspopup="true"
|
|
|
|
|
aria-label="Options"
|
|
|
|
|
class="mx_AccessibleButton mx_AppTileMenuBar_widgets_button"
|
|
|
|
|
role="button"
|
|
|
|
|
tabindex="0"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_Icon mx_Icon_12"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
2023-06-13 11:13:07 +00:00
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
2024-03-12 16:55:01 +00:00
|
|
|
|
class="mx_AppTileBody mx_AppTileBody--large"
|
2023-06-13 11:13:07 +00:00
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_AppTileBody_fadeInSpinner"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_Spinner"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_Spinner_Msg"
|
|
|
|
|
>
|
|
|
|
|
Loading…
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
aria-label="Loading…"
|
|
|
|
|
class="mx_Spinner_icon"
|
|
|
|
|
data-testid="spinner"
|
|
|
|
|
role="progressbar"
|
|
|
|
|
style="width: 32px; height: 32px;"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_AppsDrawer_resizer_container"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="mx_AppsDrawer_resizer_container_handle"
|
|
|
|
|
style="position: absolute; user-select: none; width: 100%; height: 10px; left: 0px; cursor: row-resize; bottom: -5px;"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</DocumentFragment>
|
|
|
|
|
`;
|