mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-23 02:40:17 +03:00
af51897889
* Update dependency @vector-im/compound-web to v3.1.3 * Update snapshots Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update snapshots Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update snapshots Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Fix TAC width due to compound update (#12326) --------- 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> Co-authored-by: Florian Duros <florianduros@element.io>
304 lines
6.8 KiB
Text
304 lines
6.8 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`<Pill> should not render a non-permalink 1`] = `
|
|
<DocumentFragment>
|
|
<div />
|
|
</DocumentFragment>
|
|
`;
|
|
|
|
exports[`<Pill> should not render an avatar or link when called with inMessage = false and shouldShowPillAvatar = false 1`] = `
|
|
<DocumentFragment>
|
|
<div>
|
|
<bdi>
|
|
<span
|
|
data-state="closed"
|
|
tabindex="0"
|
|
>
|
|
<span
|
|
class="mx_Pill mx_RoomPill"
|
|
>
|
|
<span
|
|
class="mx_Pill_text"
|
|
>
|
|
Room 1
|
|
</span>
|
|
</span>
|
|
</span>
|
|
</bdi>
|
|
</div>
|
|
</DocumentFragment>
|
|
`;
|
|
|
|
exports[`<Pill> should render the expected pill for @room 1`] = `
|
|
<DocumentFragment>
|
|
<div>
|
|
<bdi>
|
|
<span
|
|
data-state="closed"
|
|
tabindex="0"
|
|
>
|
|
<span
|
|
class="mx_Pill mx_AtRoomPill"
|
|
>
|
|
<span
|
|
aria-hidden="true"
|
|
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: 16px;"
|
|
>
|
|
R
|
|
</span>
|
|
<span
|
|
class="mx_Pill_text"
|
|
>
|
|
@room
|
|
</span>
|
|
</span>
|
|
</span>
|
|
</bdi>
|
|
</div>
|
|
</DocumentFragment>
|
|
`;
|
|
|
|
exports[`<Pill> should render the expected pill for a known user not in the room 1`] = `
|
|
<DocumentFragment>
|
|
<div>
|
|
<bdi>
|
|
<a
|
|
class="mx_Pill mx_UserPill"
|
|
data-state="closed"
|
|
href="https://matrix.to/#/@user2:example.com"
|
|
>
|
|
<span
|
|
aria-hidden="true"
|
|
class="_avatar_mcap2_17 mx_BaseAvatar _avatar-imageless_mcap2_61"
|
|
data-color="5"
|
|
data-testid="avatar-img"
|
|
data-type="round"
|
|
role="presentation"
|
|
style="--cpd-avatar-size: 16px;"
|
|
>
|
|
U
|
|
</span>
|
|
<span
|
|
class="mx_Pill_text"
|
|
>
|
|
User 2
|
|
</span>
|
|
</a>
|
|
</bdi>
|
|
</div>
|
|
</DocumentFragment>
|
|
`;
|
|
|
|
exports[`<Pill> should render the expected pill for a message in another room 1`] = `
|
|
<DocumentFragment>
|
|
<div>
|
|
<bdi>
|
|
<a
|
|
class="mx_Pill mx_EventPill"
|
|
data-state="closed"
|
|
href="https://matrix.to/#/!room1:example.com/$123-456"
|
|
>
|
|
<span
|
|
aria-hidden="true"
|
|
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: 16px;"
|
|
>
|
|
R
|
|
</span>
|
|
<span
|
|
class="mx_Pill_text"
|
|
>
|
|
Message in Room 1
|
|
</span>
|
|
</a>
|
|
</bdi>
|
|
</div>
|
|
</DocumentFragment>
|
|
`;
|
|
|
|
exports[`<Pill> should render the expected pill for a message in the same room 1`] = `
|
|
<DocumentFragment>
|
|
<div>
|
|
<bdi>
|
|
<a
|
|
class="mx_Pill mx_EventPill"
|
|
data-state="closed"
|
|
href="https://matrix.to/#/!room1:example.com/$123-456"
|
|
>
|
|
<span
|
|
aria-hidden="true"
|
|
class="_avatar_mcap2_17 mx_BaseAvatar _avatar-imageless_mcap2_61"
|
|
data-color="4"
|
|
data-testid="avatar-img"
|
|
data-type="round"
|
|
role="presentation"
|
|
style="--cpd-avatar-size: 16px;"
|
|
>
|
|
U
|
|
</span>
|
|
<span
|
|
class="mx_Pill_text"
|
|
>
|
|
Message from User 1
|
|
</span>
|
|
</a>
|
|
</bdi>
|
|
</div>
|
|
</DocumentFragment>
|
|
`;
|
|
|
|
exports[`<Pill> should render the expected pill for a room alias 1`] = `
|
|
<DocumentFragment>
|
|
<div>
|
|
<bdi>
|
|
<a
|
|
class="mx_Pill mx_RoomPill"
|
|
data-state="closed"
|
|
href="https://matrix.to/#/#room1:example.com"
|
|
>
|
|
<span
|
|
aria-hidden="true"
|
|
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: 16px;"
|
|
>
|
|
R
|
|
</span>
|
|
<span
|
|
class="mx_Pill_text"
|
|
>
|
|
Room 1
|
|
</span>
|
|
</a>
|
|
</bdi>
|
|
</div>
|
|
</DocumentFragment>
|
|
`;
|
|
|
|
exports[`<Pill> should render the expected pill for a space 1`] = `
|
|
<DocumentFragment>
|
|
<div>
|
|
<bdi>
|
|
<a
|
|
class="mx_Pill mx_RoomPill"
|
|
data-state="closed"
|
|
href="https://matrix.to/#/!space1:example.com"
|
|
>
|
|
<span
|
|
aria-hidden="true"
|
|
class="_avatar_mcap2_17 mx_BaseAvatar _avatar-imageless_mcap2_61"
|
|
data-color="2"
|
|
data-testid="avatar-img"
|
|
data-type="round"
|
|
role="presentation"
|
|
style="--cpd-avatar-size: 16px;"
|
|
>
|
|
S
|
|
</span>
|
|
<span
|
|
class="mx_Pill_text"
|
|
>
|
|
Space 1
|
|
</span>
|
|
</a>
|
|
</bdi>
|
|
</div>
|
|
</DocumentFragment>
|
|
`;
|
|
|
|
exports[`<Pill> should render the expected pill for an uknown user not in the room 1`] = `
|
|
<DocumentFragment>
|
|
<div>
|
|
<bdi>
|
|
<a
|
|
class="mx_Pill mx_UserPill"
|
|
data-state="closed"
|
|
href="https://matrix.to/#/@user3:example.com"
|
|
>
|
|
<div
|
|
class="mx_Pill_UserIcon mx_BaseAvatar"
|
|
/>
|
|
<span
|
|
class="mx_Pill_text"
|
|
>
|
|
@user3:example.com
|
|
</span>
|
|
</a>
|
|
</bdi>
|
|
</div>
|
|
</DocumentFragment>
|
|
`;
|
|
|
|
exports[`<Pill> when rendering a pill for a room should render the expected pill 1`] = `
|
|
<DocumentFragment>
|
|
<div>
|
|
<bdi>
|
|
<a
|
|
class="mx_Pill mx_RoomPill"
|
|
data-state="closed"
|
|
href="https://matrix.to/#/!room1:example.com"
|
|
>
|
|
<span
|
|
aria-hidden="true"
|
|
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: 16px;"
|
|
>
|
|
R
|
|
</span>
|
|
<span
|
|
class="mx_Pill_text"
|
|
>
|
|
Room 1
|
|
</span>
|
|
</a>
|
|
</bdi>
|
|
</div>
|
|
</DocumentFragment>
|
|
`;
|
|
|
|
exports[`<Pill> when rendering a pill for a user in the room should render as expected 1`] = `
|
|
<DocumentFragment>
|
|
<div>
|
|
<bdi>
|
|
<a
|
|
class="mx_Pill mx_UserPill"
|
|
data-state="closed"
|
|
href="https://matrix.to/#/@user1:example.com"
|
|
>
|
|
<span
|
|
aria-hidden="true"
|
|
class="_avatar_mcap2_17 mx_BaseAvatar _avatar-imageless_mcap2_61"
|
|
data-color="4"
|
|
data-testid="avatar-img"
|
|
data-type="round"
|
|
role="presentation"
|
|
style="--cpd-avatar-size: 16px;"
|
|
>
|
|
U
|
|
</span>
|
|
<span
|
|
class="mx_Pill_text"
|
|
>
|
|
User 1
|
|
</span>
|
|
</a>
|
|
</bdi>
|
|
</div>
|
|
</DocumentFragment>
|
|
`;
|