2023-03-08 15:06:50 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2023-03-13 17:43:13 +03:00
|
|
|
exports[`<Pill> should not render a non-permalink 1`] = `
|
|
|
|
<DocumentFragment>
|
|
|
|
<div />
|
|
|
|
</DocumentFragment>
|
|
|
|
`;
|
2023-03-09 14:48:36 +03:00
|
|
|
|
2023-03-08 15:06:50 +03:00
|
|
|
exports[`<Pill> should not render an avatar or link when called with inMessage = false and shouldShowPillAvatar = false 1`] = `
|
|
|
|
<DocumentFragment>
|
2023-03-13 17:43:13 +03:00
|
|
|
<div>
|
|
|
|
<bdi>
|
2023-03-08 15:06:50 +03:00
|
|
|
<span
|
2023-03-13 17:43:13 +03:00
|
|
|
class="mx_Pill mx_RoomPill"
|
2023-03-08 15:06:50 +03:00
|
|
|
>
|
2023-03-13 17:43:13 +03:00
|
|
|
<span
|
|
|
|
class="mx_Pill_linkText"
|
|
|
|
>
|
|
|
|
Room 1
|
|
|
|
</span>
|
2023-03-08 15:06:50 +03:00
|
|
|
</span>
|
2023-03-13 17:43:13 +03:00
|
|
|
</bdi>
|
|
|
|
</div>
|
2023-03-08 15:06:50 +03:00
|
|
|
</DocumentFragment>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`<Pill> should render the expected pill for @room 1`] = `
|
|
|
|
<DocumentFragment>
|
2023-03-13 17:43:13 +03:00
|
|
|
<div>
|
|
|
|
<bdi>
|
2023-03-08 15:06:50 +03:00
|
|
|
<span
|
2023-03-13 17:43:13 +03:00
|
|
|
class="mx_Pill mx_AtRoomPill"
|
2023-03-08 15:06:50 +03:00
|
|
|
>
|
|
|
|
<span
|
|
|
|
aria-hidden="true"
|
2023-03-13 17:43:13 +03:00
|
|
|
class="mx_BaseAvatar"
|
|
|
|
role="presentation"
|
2023-03-08 15:06:50 +03:00
|
|
|
>
|
2023-03-13 17:43:13 +03:00
|
|
|
<span
|
|
|
|
aria-hidden="true"
|
|
|
|
class="mx_BaseAvatar_initial"
|
|
|
|
style="font-size: 10.4px; width: 16px; line-height: 16px;"
|
|
|
|
>
|
|
|
|
R
|
|
|
|
</span>
|
|
|
|
<img
|
|
|
|
alt=""
|
|
|
|
aria-hidden="true"
|
|
|
|
class="mx_BaseAvatar_image"
|
|
|
|
data-testid="avatar-img"
|
|
|
|
src="data:image/png;base64,00"
|
|
|
|
style="width: 16px; height: 16px;"
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
<span
|
|
|
|
class="mx_Pill_linkText"
|
|
|
|
>
|
|
|
|
@room
|
2023-03-08 15:06:50 +03:00
|
|
|
</span>
|
|
|
|
</span>
|
2023-03-13 17:43:13 +03:00
|
|
|
</bdi>
|
|
|
|
</div>
|
2023-03-08 15:06:50 +03:00
|
|
|
</DocumentFragment>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`<Pill> should render the expected pill for a room alias 1`] = `
|
|
|
|
<DocumentFragment>
|
2023-03-13 17:43:13 +03:00
|
|
|
<div>
|
|
|
|
<bdi>
|
|
|
|
<a
|
|
|
|
class="mx_Pill mx_RoomPill"
|
|
|
|
href="https://matrix.to/#/#room1:example.com"
|
2023-03-08 15:06:50 +03:00
|
|
|
>
|
|
|
|
<span
|
|
|
|
aria-hidden="true"
|
2023-03-13 17:43:13 +03:00
|
|
|
class="mx_BaseAvatar"
|
|
|
|
role="presentation"
|
2023-03-08 15:06:50 +03:00
|
|
|
>
|
2023-03-13 17:43:13 +03:00
|
|
|
<span
|
|
|
|
aria-hidden="true"
|
|
|
|
class="mx_BaseAvatar_initial"
|
|
|
|
style="font-size: 10.4px; width: 16px; line-height: 16px;"
|
|
|
|
>
|
|
|
|
R
|
|
|
|
</span>
|
|
|
|
<img
|
|
|
|
alt=""
|
|
|
|
aria-hidden="true"
|
|
|
|
class="mx_BaseAvatar_image"
|
|
|
|
data-testid="avatar-img"
|
|
|
|
src="data:image/png;base64,00"
|
|
|
|
style="width: 16px; height: 16px;"
|
|
|
|
/>
|
2023-03-08 15:06:50 +03:00
|
|
|
</span>
|
2023-03-13 17:43:13 +03:00
|
|
|
<span
|
|
|
|
class="mx_Pill_linkText"
|
|
|
|
>
|
|
|
|
Room 1
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</bdi>
|
|
|
|
</div>
|
2023-03-08 15:06:50 +03:00
|
|
|
</DocumentFragment>
|
|
|
|
`;
|
|
|
|
|
2023-03-09 14:48:36 +03:00
|
|
|
exports[`<Pill> should render the expected pill for a space 1`] = `
|
|
|
|
<DocumentFragment>
|
2023-03-13 17:43:13 +03:00
|
|
|
<div>
|
|
|
|
<bdi>
|
|
|
|
<a
|
|
|
|
class="mx_Pill mx_RoomPill"
|
|
|
|
href="https://matrix.to/#/!space1:example.com"
|
2023-03-09 14:48:36 +03:00
|
|
|
>
|
|
|
|
<span
|
|
|
|
aria-hidden="true"
|
2023-03-13 17:43:13 +03:00
|
|
|
class="mx_BaseAvatar"
|
|
|
|
role="presentation"
|
2023-03-09 14:48:36 +03:00
|
|
|
>
|
2023-03-13 17:43:13 +03:00
|
|
|
<span
|
|
|
|
aria-hidden="true"
|
|
|
|
class="mx_BaseAvatar_initial"
|
|
|
|
style="font-size: 10.4px; width: 16px; line-height: 16px;"
|
|
|
|
>
|
|
|
|
S
|
|
|
|
</span>
|
|
|
|
<img
|
|
|
|
alt=""
|
|
|
|
aria-hidden="true"
|
|
|
|
class="mx_BaseAvatar_image"
|
|
|
|
data-testid="avatar-img"
|
|
|
|
src="data:image/png;base64,00"
|
|
|
|
style="width: 16px; height: 16px;"
|
|
|
|
/>
|
2023-03-09 14:48:36 +03:00
|
|
|
</span>
|
2023-03-13 17:43:13 +03:00
|
|
|
<span
|
|
|
|
class="mx_Pill_linkText"
|
|
|
|
>
|
|
|
|
Space 1
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</bdi>
|
|
|
|
</div>
|
2023-03-09 14:48:36 +03:00
|
|
|
</DocumentFragment>
|
|
|
|
`;
|
|
|
|
|
2023-03-08 15:06:50 +03:00
|
|
|
exports[`<Pill> should render the expected pill for a user not in the room 1`] = `
|
|
|
|
<DocumentFragment>
|
2023-03-13 17:43:13 +03:00
|
|
|
<div>
|
|
|
|
<bdi>
|
|
|
|
<a
|
|
|
|
class="mx_Pill mx_UserPill"
|
|
|
|
href="https://matrix.to/#/@user2:example.com"
|
2023-03-08 15:06:50 +03:00
|
|
|
>
|
|
|
|
<span
|
|
|
|
aria-hidden="true"
|
2023-03-13 17:43:13 +03:00
|
|
|
class="mx_BaseAvatar"
|
|
|
|
role="presentation"
|
2023-03-08 15:06:50 +03:00
|
|
|
>
|
2023-03-13 17:43:13 +03:00
|
|
|
<span
|
|
|
|
aria-hidden="true"
|
|
|
|
class="mx_BaseAvatar_initial"
|
|
|
|
style="font-size: 10.4px; width: 16px; line-height: 16px;"
|
|
|
|
>
|
|
|
|
U
|
|
|
|
</span>
|
|
|
|
<img
|
|
|
|
alt=""
|
|
|
|
aria-hidden="true"
|
|
|
|
class="mx_BaseAvatar_image"
|
|
|
|
data-testid="avatar-img"
|
|
|
|
src="data:image/png;base64,00"
|
|
|
|
style="width: 16px; height: 16px;"
|
|
|
|
/>
|
2023-03-08 15:06:50 +03:00
|
|
|
</span>
|
2023-03-13 17:43:13 +03:00
|
|
|
<span
|
|
|
|
class="mx_Pill_linkText"
|
|
|
|
>
|
|
|
|
User 2
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</bdi>
|
|
|
|
</div>
|
2023-03-08 15:06:50 +03:00
|
|
|
</DocumentFragment>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`<Pill> when rendering a pill for a room should render the expected pill 1`] = `
|
|
|
|
<DocumentFragment>
|
2023-03-13 17:43:13 +03:00
|
|
|
<div>
|
|
|
|
<bdi>
|
|
|
|
<a
|
|
|
|
class="mx_Pill mx_RoomPill"
|
|
|
|
href="https://matrix.to/#/!room1:example.com"
|
2023-03-08 15:06:50 +03:00
|
|
|
>
|
|
|
|
<span
|
|
|
|
aria-hidden="true"
|
2023-03-13 17:43:13 +03:00
|
|
|
class="mx_BaseAvatar"
|
|
|
|
role="presentation"
|
2023-03-08 15:06:50 +03:00
|
|
|
>
|
2023-03-13 17:43:13 +03:00
|
|
|
<span
|
|
|
|
aria-hidden="true"
|
|
|
|
class="mx_BaseAvatar_initial"
|
|
|
|
style="font-size: 10.4px; width: 16px; line-height: 16px;"
|
|
|
|
>
|
|
|
|
R
|
|
|
|
</span>
|
|
|
|
<img
|
|
|
|
alt=""
|
|
|
|
aria-hidden="true"
|
|
|
|
class="mx_BaseAvatar_image"
|
|
|
|
data-testid="avatar-img"
|
|
|
|
src="data:image/png;base64,00"
|
|
|
|
style="width: 16px; height: 16px;"
|
|
|
|
/>
|
2023-03-08 15:06:50 +03:00
|
|
|
</span>
|
2023-03-13 17:43:13 +03:00
|
|
|
<span
|
|
|
|
class="mx_Pill_linkText"
|
|
|
|
>
|
|
|
|
Room 1
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</bdi>
|
|
|
|
</div>
|
2023-03-08 15:06:50 +03:00
|
|
|
</DocumentFragment>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`<Pill> when rendering a pill for a user in the room should render as expected 1`] = `
|
|
|
|
<DocumentFragment>
|
2023-03-13 17:43:13 +03:00
|
|
|
<div>
|
|
|
|
<bdi>
|
|
|
|
<a
|
|
|
|
class="mx_Pill mx_UserPill"
|
|
|
|
href="https://matrix.to/#/@user1:example.com"
|
2023-03-08 15:06:50 +03:00
|
|
|
>
|
|
|
|
<span
|
|
|
|
aria-hidden="true"
|
2023-03-13 17:43:13 +03:00
|
|
|
class="mx_BaseAvatar"
|
|
|
|
role="presentation"
|
2023-03-08 15:06:50 +03:00
|
|
|
>
|
2023-03-13 17:43:13 +03:00
|
|
|
<span
|
|
|
|
aria-hidden="true"
|
|
|
|
class="mx_BaseAvatar_initial"
|
|
|
|
style="font-size: 10.4px; width: 16px; line-height: 16px;"
|
|
|
|
>
|
|
|
|
U
|
|
|
|
</span>
|
|
|
|
<img
|
|
|
|
alt=""
|
|
|
|
aria-hidden="true"
|
|
|
|
class="mx_BaseAvatar_image"
|
|
|
|
data-testid="avatar-img"
|
|
|
|
src="data:image/png;base64,00"
|
|
|
|
style="width: 16px; height: 16px;"
|
|
|
|
/>
|
2023-03-08 15:06:50 +03:00
|
|
|
</span>
|
2023-03-13 17:43:13 +03:00
|
|
|
<span
|
|
|
|
class="mx_Pill_linkText"
|
|
|
|
>
|
|
|
|
User 1
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</bdi>
|
|
|
|
</div>
|
2023-03-08 15:06:50 +03:00
|
|
|
</DocumentFragment>
|
|
|
|
`;
|