element-web-Github/test/components/views/rooms/__snapshots__/PinnedEventTile-test.tsx.snap
Łukasz Polowczyk c1420ba126
Allow Chrome page translator to translate messages in rooms (#11113)
* support message translation in chat

* Update src/HtmlUtils.tsx

* update snapshots

* Convert TextualBody-test to use snapshots

---------

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
Co-authored-by: Richard van der Hoff <richard@matrix.org>
2024-07-25 16:58:33 +00:00

56 lines
1.2 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`<PinnedEventTile /> should render pinned event 1`] = `
<div>
<div
class="mx_PinnedEventTile"
>
<span
class="_avatar_mcap2_17 mx_BaseAvatar mx_PinnedEventTile_senderAvatar _avatar-imageless_mcap2_61"
data-color="2"
data-testid="avatar-img"
data-type="round"
role="presentation"
style="--cpd-avatar-size: 24px;"
>
a
</span>
<span
class="mx_PinnedEventTile_sender mx_Username_color2"
>
@alice:server.org
</span>
<div
class="mx_PinnedEventTile_message"
>
<div
class="mx_MTextBody mx_EventTile_content"
>
<span
class="mx_EventTile_body translate"
dir="auto"
>
First pinned message
</span>
</div>
</div>
<div
class="mx_PinnedEventTile_footer"
>
<span
class="mx_MessageTimestamp mx_PinnedEventTile_timestamp"
>
Thu, Jan 1, 1970, 00:00
</span>
<div
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_link"
role="button"
tabindex="0"
>
View message
</div>
</div>
</div>
</div>
`;