mirror of
https://github.com/vector-im/element-web.git
synced 2025-12-05 09:21:17 +01:00
* Update jest to v30 * Update jest to v30 * Update snapshots Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Apply jsdom patch Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix tests 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>
104 lines
2.1 KiB
Plaintext
104 lines
2.1 KiB
Plaintext
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
|
|
exports[`keyword pills should do nothing for empty element 1`] = `
|
|
<DocumentFragment>
|
|
<div />
|
|
</DocumentFragment>
|
|
`;
|
|
|
|
exports[`keyword pills should pillify 1`] = `
|
|
<DocumentFragment>
|
|
<div>
|
|
Foo
|
|
<bdi>
|
|
<span
|
|
tabindex="0"
|
|
>
|
|
<span
|
|
class="mx_Pill mx_KeywordPill"
|
|
>
|
|
<span
|
|
class="mx_Pill_text"
|
|
>
|
|
TeST
|
|
</span>
|
|
</span>
|
|
</span>
|
|
</bdi>
|
|
Bar
|
|
</div>
|
|
</DocumentFragment>
|
|
`;
|
|
|
|
exports[`mention pills should do nothing for empty element 1`] = `
|
|
<DocumentFragment>
|
|
<div />
|
|
</DocumentFragment>
|
|
`;
|
|
|
|
exports[`mention pills should pillify @room 1`] = `
|
|
<DocumentFragment>
|
|
<div>
|
|
<bdi>
|
|
<span
|
|
tabindex="0"
|
|
>
|
|
<span
|
|
class="mx_Pill mx_AtRoomPill"
|
|
>
|
|
<span
|
|
aria-hidden="true"
|
|
class="_avatar_1qbcf_8 mx_BaseAvatar _avatar-imageless_1qbcf_52"
|
|
data-color="4"
|
|
data-testid="avatar-img"
|
|
data-type="round"
|
|
role="presentation"
|
|
style="--cpd-avatar-size: 16px;"
|
|
>
|
|
!
|
|
</span>
|
|
<span
|
|
class="mx_Pill_text"
|
|
>
|
|
@room
|
|
</span>
|
|
</span>
|
|
</span>
|
|
</bdi>
|
|
</div>
|
|
</DocumentFragment>
|
|
`;
|
|
|
|
exports[`mention pills should pillify @room in an intentional mentions world 1`] = `
|
|
<DocumentFragment>
|
|
<div>
|
|
<bdi>
|
|
<span
|
|
tabindex="0"
|
|
>
|
|
<span
|
|
class="mx_Pill mx_AtRoomPill"
|
|
>
|
|
<span
|
|
aria-hidden="true"
|
|
class="_avatar_1qbcf_8 mx_BaseAvatar _avatar-imageless_1qbcf_52"
|
|
data-color="4"
|
|
data-testid="avatar-img"
|
|
data-type="round"
|
|
role="presentation"
|
|
style="--cpd-avatar-size: 16px;"
|
|
>
|
|
!
|
|
</span>
|
|
<span
|
|
class="mx_Pill_text"
|
|
>
|
|
@room
|
|
</span>
|
|
</span>
|
|
</span>
|
|
</bdi>
|
|
</div>
|
|
</DocumentFragment>
|
|
`;
|