mirror of
https://github.com/vector-im/element-web.git
synced 2024-12-01 15:11:11 +08:00
ae18bb9ba4
* Update compound-design-tokens to satisfy compound-web peer dependency Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update snapshots Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
457 lines
12 KiB
Plaintext
457 lines
12 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||
|
||
exports[`AppTile destroys non-persisted right panel widget on room change 1`] = `
|
||
<DocumentFragment>
|
||
<aside
|
||
class="mx_RightPanel"
|
||
id="mx_RightPanel"
|
||
>
|
||
<div
|
||
class="mx_BaseCard mx_WidgetCard"
|
||
>
|
||
<div
|
||
class="mx_BaseCard_header"
|
||
>
|
||
<div
|
||
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>
|
||
<button
|
||
class="_icon-button_bh2qc_17 _subtle-bg_bh2qc_38"
|
||
data-testid="base-card-close-button"
|
||
role="button"
|
||
style="--cpd-icon-button-size: 28px;"
|
||
tabindex="0"
|
||
>
|
||
<div
|
||
class="_indicator-icon_133tf_26"
|
||
style="--cpd-icon-button-size: 100%;"
|
||
>
|
||
<svg
|
||
fill="currentColor"
|
||
height="1em"
|
||
viewBox="0 0 24 24"
|
||
width="1em"
|
||
xmlns="http://www.w3.org/2000/svg"
|
||
>
|
||
<path
|
||
d="M6.293 6.293a1 1 0 0 1 1.414 0L12 10.586l4.293-4.293a1 1 0 1 1 1.414 1.414L13.414 12l4.293 4.293a1 1 0 0 1-1.414 1.414L12 13.414l-4.293 4.293a1 1 0 0 1-1.414-1.414L10.586 12 6.293 7.707a1 1 0 0 1 0-1.414Z"
|
||
/>
|
||
</svg>
|
||
</div>
|
||
</button>
|
||
</div>
|
||
<div
|
||
class="mx_AppTileFullWidth"
|
||
id="1"
|
||
>
|
||
<div
|
||
class="mx_AppTileBody mx_AppTileBody--large"
|
||
>
|
||
<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>
|
||
</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>
|
||
`;
|
||
|
||
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>
|
||
<span
|
||
aria-label="Avatar"
|
||
class="_avatar_mcap2_17 mx_BaseAvatar mx_WidgetAvatar"
|
||
data-color="1"
|
||
data-testid="avatar-img"
|
||
data-type="round"
|
||
style="--cpd-avatar-size: 20px;"
|
||
>
|
||
<img
|
||
alt=""
|
||
class="_image_mcap2_50"
|
||
data-type="round"
|
||
height="20px"
|
||
loading="lazy"
|
||
referrerpolicy="no-referrer"
|
||
src="image-file-stub"
|
||
width="20px"
|
||
/>
|
||
</span>
|
||
<h3>
|
||
Example 1
|
||
</h3>
|
||
<span />
|
||
</span>
|
||
</span>
|
||
<span
|
||
class="mx_AppTileMenuBar_widgets"
|
||
>
|
||
<div
|
||
aria-label="Un-maximise"
|
||
class="mx_AccessibleButton mx_AppTileMenuBar_widgets_button"
|
||
role="button"
|
||
tabindex="0"
|
||
>
|
||
<div
|
||
class="mx_Icon mx_Icon_12"
|
||
/>
|
||
</div>
|
||
<div
|
||
aria-label="Minimise"
|
||
class="mx_AccessibleButton mx_AppTileMenuBar_widgets_button"
|
||
role="button"
|
||
tabindex="0"
|
||
>
|
||
<div
|
||
class="mx_Icon mx_Icon_12"
|
||
/>
|
||
</div>
|
||
<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>
|
||
</span>
|
||
</div>
|
||
<div
|
||
class="mx_AppTile_persistedWrapper"
|
||
>
|
||
<div />
|
||
</div>
|
||
</div>
|
||
</DocumentFragment>
|
||
`;
|
||
|
||
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>
|
||
<span
|
||
aria-label="Avatar"
|
||
class="_avatar_mcap2_17 mx_BaseAvatar mx_WidgetAvatar"
|
||
data-color="1"
|
||
data-testid="avatar-img"
|
||
data-type="round"
|
||
style="--cpd-avatar-size: 20px;"
|
||
>
|
||
<img
|
||
alt=""
|
||
class="_image_mcap2_50"
|
||
data-type="round"
|
||
height="20px"
|
||
loading="lazy"
|
||
referrerpolicy="no-referrer"
|
||
src="image-file-stub"
|
||
width="20px"
|
||
/>
|
||
</span>
|
||
<h3>
|
||
Example 1
|
||
</h3>
|
||
<span />
|
||
</span>
|
||
</span>
|
||
<span
|
||
class="mx_AppTileMenuBar_widgets"
|
||
>
|
||
<div
|
||
aria-label="Un-maximise"
|
||
class="mx_AccessibleButton mx_AppTileMenuBar_widgets_button"
|
||
role="button"
|
||
tabindex="0"
|
||
>
|
||
<div
|
||
class="mx_Icon mx_Icon_12"
|
||
/>
|
||
</div>
|
||
<div
|
||
aria-label="Minimise"
|
||
class="mx_AccessibleButton mx_AppTileMenuBar_widgets_button"
|
||
role="button"
|
||
tabindex="0"
|
||
>
|
||
<div
|
||
class="mx_Icon mx_Icon_12"
|
||
/>
|
||
</div>
|
||
<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>
|
||
</span>
|
||
</div>
|
||
<div
|
||
class="mx_AppTileBody mx_AppTileBody--large"
|
||
>
|
||
<div
|
||
class="mx_AppPermission"
|
||
>
|
||
<div
|
||
class="mx_AppPermission_content"
|
||
>
|
||
<div
|
||
class="mx_AppPermission_content_bolder"
|
||
>
|
||
Widget added by
|
||
</div>
|
||
<div>
|
||
<span
|
||
class="_avatar_mcap2_17 mx_BaseAvatar _avatar-imageless_mcap2_61"
|
||
data-color="1"
|
||
data-testid="avatar-img"
|
||
data-type="round"
|
||
role="presentation"
|
||
style="--cpd-avatar-size: 38px;"
|
||
>
|
||
u
|
||
</span>
|
||
<h4
|
||
class="mx_Heading_h4"
|
||
>
|
||
@userAnother
|
||
</h4>
|
||
<div />
|
||
</div>
|
||
<div>
|
||
<span>
|
||
Using this widget may share data
|
||
<div
|
||
class="mx_TextWithTooltip_target mx_TextWithTooltip_target--helpIcon"
|
||
>
|
||
<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>
|
||
`;
|
||
|
||
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>
|
||
<span
|
||
aria-label="Avatar"
|
||
class="_avatar_mcap2_17 mx_BaseAvatar mx_WidgetAvatar"
|
||
data-color="1"
|
||
data-testid="avatar-img"
|
||
data-type="round"
|
||
style="--cpd-avatar-size: 20px;"
|
||
>
|
||
<img
|
||
alt=""
|
||
class="_image_mcap2_50"
|
||
data-type="round"
|
||
height="20px"
|
||
loading="lazy"
|
||
referrerpolicy="no-referrer"
|
||
src="image-file-stub"
|
||
width="20px"
|
||
/>
|
||
</span>
|
||
<h3>
|
||
Example 1
|
||
</h3>
|
||
<span />
|
||
</span>
|
||
</span>
|
||
<span
|
||
class="mx_AppTileMenuBar_widgets"
|
||
>
|
||
<div
|
||
aria-label="Maximise"
|
||
class="mx_AccessibleButton mx_AppTileMenuBar_widgets_button"
|
||
role="button"
|
||
tabindex="0"
|
||
>
|
||
<div
|
||
class="mx_Icon mx_Icon_12"
|
||
/>
|
||
</div>
|
||
<div
|
||
aria-label="Minimise"
|
||
class="mx_AccessibleButton mx_AppTileMenuBar_widgets_button"
|
||
role="button"
|
||
tabindex="0"
|
||
>
|
||
<div
|
||
class="mx_Icon mx_Icon_12"
|
||
/>
|
||
</div>
|
||
<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>
|
||
</span>
|
||
</div>
|
||
<div
|
||
class="mx_AppTileBody mx_AppTileBody--large"
|
||
>
|
||
<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>
|
||
`;
|