* Update vector-im * Update Jest snapshots Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update snapshots Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix playwright styling overrides Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Hold back Compound Design Tokens as threads icons unexpectedly grew a dot in the top corner where we conditionally draw a dot Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update snapshots Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update snapshots Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update Compound Design Tokens to 6.4.1 Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update snapshots Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Revert snapshots Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Iterate Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Tweak bubble Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update snapshots Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update storybook snapshots Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update jest snapshots Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update jest snapshots Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
222 lines
5.2 KiB
Plaintext
222 lines
5.2 KiB
Plaintext
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
|
|
exports[`<MImageBody/> should generate a thumbnail if one isn't included for animated media 1`] = `
|
|
<div>
|
|
<div
|
|
class="mx_MImageBody"
|
|
>
|
|
<a
|
|
href="https://server/_matrix/media/v3/download/server/image"
|
|
>
|
|
<div
|
|
class="mx_MImageBody_thumbnail_container"
|
|
style="max-height: 50px; max-width: 40px; aspect-ratio: 40/50;"
|
|
>
|
|
<div
|
|
class="mx_MImageBody_placeholder"
|
|
>
|
|
<div
|
|
class="mx_Spinner"
|
|
>
|
|
<div
|
|
aria-label="Loading…"
|
|
class="mx_Spinner_icon"
|
|
data-testid="spinner"
|
|
role="progressbar"
|
|
style="width: 32px; height: 32px;"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div
|
|
style="max-height: 50px; max-width: 40px;"
|
|
>
|
|
<img
|
|
alt="alt for a test image"
|
|
class="mx_MImageBody_thumbnail"
|
|
src="blob:generated-thumb"
|
|
/>
|
|
<p
|
|
class="mx_MImageBody_gifLabel"
|
|
>
|
|
GIF
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`<MImageBody/> should open ImageView using thumbnail for encrypted svg 1`] = `
|
|
<div
|
|
aria-label="Image view"
|
|
class="mx_ImageView"
|
|
data-focus-lock-disabled="false"
|
|
role="dialog"
|
|
>
|
|
<div
|
|
class="mx_ImageView_panel"
|
|
>
|
|
<div
|
|
class="mx_ImageView_info_wrapper"
|
|
>
|
|
<button
|
|
aria-label="Profile picture"
|
|
aria-live="off"
|
|
class="_avatar_zysgz_8 mx_BaseAvatar mx_Dialog_nonDialogButton _avatar-imageless_zysgz_55"
|
|
data-color="2"
|
|
data-testid="avatar-img"
|
|
data-type="round"
|
|
role="button"
|
|
style="--cpd-avatar-size: 32px;"
|
|
>
|
|
o
|
|
</button>
|
|
<div
|
|
class="mx_ImageView_info"
|
|
>
|
|
<div
|
|
class="mx_ImageView_info_sender"
|
|
>
|
|
@other_use:server
|
|
</div>
|
|
<a
|
|
aria-live="off"
|
|
class="mx_MessageTimestamp"
|
|
href="https://matrix.to/#/!room:server/undefined"
|
|
>
|
|
Thu, Jan 15, 1970, 06:56
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="mx_ImageView_title"
|
|
>
|
|
Image
|
|
</div>
|
|
<div
|
|
class="mx_ImageView_toolbar"
|
|
>
|
|
<div
|
|
aria-label="Zoom out"
|
|
class="mx_AccessibleButton mx_ImageView_button mx_ImageView_button_zoomOut"
|
|
role="button"
|
|
tabindex="0"
|
|
/>
|
|
<div
|
|
aria-label="Zoom in"
|
|
class="mx_AccessibleButton mx_ImageView_button mx_ImageView_button_zoomIn"
|
|
role="button"
|
|
tabindex="0"
|
|
/>
|
|
<div
|
|
aria-label="Rotate Left"
|
|
class="mx_AccessibleButton mx_ImageView_button mx_ImageView_button_rotateCCW"
|
|
role="button"
|
|
tabindex="0"
|
|
/>
|
|
<div
|
|
aria-label="Rotate Right"
|
|
class="mx_AccessibleButton mx_ImageView_button mx_ImageView_button_rotateCW"
|
|
role="button"
|
|
tabindex="0"
|
|
/>
|
|
<div
|
|
aria-label="Download"
|
|
class="mx_AccessibleButton mx_ImageView_button mx_ImageView_button_download"
|
|
role="button"
|
|
tabindex="0"
|
|
/>
|
|
<div
|
|
aria-expanded="false"
|
|
aria-haspopup="true"
|
|
aria-label="Options"
|
|
class="mx_AccessibleButton mx_ImageView_button mx_ImageView_button_more"
|
|
role="button"
|
|
tabindex="0"
|
|
/>
|
|
<div
|
|
aria-label="Close"
|
|
class="mx_AccessibleButton mx_ImageView_button mx_ImageView_button_close"
|
|
role="button"
|
|
tabindex="0"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="mx_ImageView_image_wrapper"
|
|
>
|
|
<img
|
|
alt="Attachment"
|
|
class="mx_ImageView_image "
|
|
draggable="true"
|
|
src="https://server/_matrix/media/v3/download/server/svg-thumbnail"
|
|
style="transform: translateX(-512px)
|
|
translateY(NaNpx)
|
|
scale(0)
|
|
rotate(0deg); cursor: zoom-out;"
|
|
/>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`<MImageBody/> should render MFileBody for svg with no thumbnail 1`] = `
|
|
<DocumentFragment>
|
|
<span
|
|
class="mx_MFileBody"
|
|
>
|
|
<div
|
|
class="mx_AccessibleButton mx_MediaBody mx_MFileBody_info"
|
|
role="button"
|
|
tabindex="0"
|
|
>
|
|
<span
|
|
class="mx_MFileBody_info_icon"
|
|
/>
|
|
<span
|
|
aria-labelledby="_r_0_"
|
|
tabindex="0"
|
|
>
|
|
<span
|
|
class="mx_MFileBody_info_filename"
|
|
>
|
|
Attachment
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</span>
|
|
</DocumentFragment>
|
|
`;
|
|
|
|
exports[`<MImageBody/> should show a thumbnail while image is being downloaded 1`] = `
|
|
<div>
|
|
<div
|
|
class="mx_MImageBody"
|
|
>
|
|
<div
|
|
class="mx_MImageBody_thumbnail_container"
|
|
style="max-height: 50px; max-width: 40px; aspect-ratio: 40/50;"
|
|
>
|
|
<div
|
|
class="mx_MImageBody_placeholder"
|
|
>
|
|
<div
|
|
class="mx_Spinner"
|
|
>
|
|
<div
|
|
aria-label="Loading…"
|
|
class="mx_Spinner_icon"
|
|
data-testid="spinner"
|
|
role="progressbar"
|
|
style="width: 32px; height: 32px;"
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div
|
|
style="max-height: 50px; max-width: 40px;"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
`;
|