Fix avatar in chat export (#12537)
* Update `@vector-im/compound-web` * Update test snapshots
This commit is contained in:
parent
a730e1d3d6
commit
580bc8771c
7 changed files with 8 additions and 17 deletions
|
@ -116,7 +116,6 @@ exports[`AppTile for a pinned widget should render 1`] = `
|
|||
<img
|
||||
alt=""
|
||||
class="_image_mcap2_50"
|
||||
crossorigin="anonymous"
|
||||
data-type="round"
|
||||
height="20px"
|
||||
loading="lazy"
|
||||
|
@ -202,7 +201,6 @@ exports[`AppTile for a pinned widget should render permission request 1`] = `
|
|||
<img
|
||||
alt=""
|
||||
class="_image_mcap2_50"
|
||||
crossorigin="anonymous"
|
||||
data-type="round"
|
||||
height="20px"
|
||||
loading="lazy"
|
||||
|
@ -355,7 +353,6 @@ exports[`AppTile preserves non-persisted widget on container move 1`] = `
|
|||
<img
|
||||
alt=""
|
||||
class="_image_mcap2_50"
|
||||
crossorigin="anonymous"
|
||||
data-type="round"
|
||||
height="20px"
|
||||
loading="lazy"
|
||||
|
|
|
@ -198,7 +198,7 @@ describe("<TextualBody />", () => {
|
|||
const { container } = getComponent({ mxEvent: ev });
|
||||
const content = container.querySelector(".mx_EventTile_body");
|
||||
expect(content.innerHTML).toMatchInlineSnapshot(
|
||||
`"Chat with <span><bdi><a class="mx_Pill mx_UserPill mx_UserPill_me" href="https://matrix.to/#/@user:example.com"><span aria-label="Profile picture" aria-hidden="true" data-testid="avatar-img" data-type="round" data-color="2" class="_avatar_mcap2_17 mx_BaseAvatar" style="--cpd-avatar-size: 16px;"><img loading="lazy" alt="" src="mxc://avatar.url/image.png" crossorigin="anonymous" referrerpolicy="no-referrer" class="_image_mcap2_50" data-type="round" width="16px" height="16px"></span><span class="mx_Pill_text">Member</span></a></bdi></span>"`,
|
||||
`"Chat with <span><bdi><a class="mx_Pill mx_UserPill mx_UserPill_me" href="https://matrix.to/#/@user:example.com"><span aria-label="Profile picture" aria-hidden="true" data-testid="avatar-img" data-type="round" data-color="2" class="_avatar_mcap2_17 mx_BaseAvatar" style="--cpd-avatar-size: 16px;"><img loading="lazy" alt="" src="mxc://avatar.url/image.png" referrerpolicy="no-referrer" class="_image_mcap2_50" data-type="round" width="16px" height="16px"></span><span class="mx_Pill_text">Member</span></a></bdi></span>"`,
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
@ -65,7 +65,6 @@ exports[`<TextualBody /> renders formatted m.text correctly pills appear for an
|
|||
<img
|
||||
alt=""
|
||||
class="_image_mcap2_50"
|
||||
crossorigin="anonymous"
|
||||
data-type="round"
|
||||
height="16px"
|
||||
loading="lazy"
|
||||
|
@ -113,7 +112,6 @@ exports[`<TextualBody /> renders formatted m.text correctly pills appear for eve
|
|||
<img
|
||||
alt=""
|
||||
class="_image_mcap2_50"
|
||||
crossorigin="anonymous"
|
||||
data-type="round"
|
||||
height="16px"
|
||||
loading="lazy"
|
||||
|
@ -163,7 +161,6 @@ exports[`<TextualBody /> renders formatted m.text correctly pills appear for roo
|
|||
<img
|
||||
alt=""
|
||||
class="_image_mcap2_50"
|
||||
crossorigin="anonymous"
|
||||
data-type="round"
|
||||
height="16px"
|
||||
loading="lazy"
|
||||
|
@ -272,7 +269,6 @@ exports[`<TextualBody /> renders formatted m.text correctly pills get injected c
|
|||
<img
|
||||
alt=""
|
||||
class="_image_mcap2_50"
|
||||
crossorigin="anonymous"
|
||||
data-type="round"
|
||||
height="16px"
|
||||
loading="lazy"
|
||||
|
@ -292,9 +288,9 @@ exports[`<TextualBody /> renders formatted m.text correctly pills get injected c
|
|||
</span>
|
||||
`;
|
||||
|
||||
exports[`<TextualBody /> renders plain-text m.text correctly should pillify a permalink to a message in the same room with the label »Message from Member« 1`] = `"Visit <span><bdi><a class="mx_Pill mx_EventPill" href="https://matrix.to/#/!room1:example.com/%event_id%"><span aria-label="Profile picture" aria-hidden="true" data-testid="avatar-img" data-type="round" data-color="2" class="_avatar_mcap2_17 mx_BaseAvatar" style="--cpd-avatar-size: 16px;"><img loading="lazy" alt="" src="mxc://avatar.url/image.png" crossorigin="anonymous" referrerpolicy="no-referrer" class="_image_mcap2_50" data-type="round" width="16px" height="16px"></span><span class="mx_Pill_text">Message from Member</span></a></bdi></span>"`;
|
||||
exports[`<TextualBody /> renders plain-text m.text correctly should pillify a permalink to a message in the same room with the label »Message from Member« 1`] = `"Visit <span><bdi><a class="mx_Pill mx_EventPill" href="https://matrix.to/#/!room1:example.com/%event_id%"><span aria-label="Profile picture" aria-hidden="true" data-testid="avatar-img" data-type="round" data-color="2" class="_avatar_mcap2_17 mx_BaseAvatar" style="--cpd-avatar-size: 16px;"><img loading="lazy" alt="" src="mxc://avatar.url/image.png" referrerpolicy="no-referrer" class="_image_mcap2_50" data-type="round" width="16px" height="16px"></span><span class="mx_Pill_text">Message from Member</span></a></bdi></span>"`;
|
||||
|
||||
exports[`<TextualBody /> renders plain-text m.text correctly should pillify a permalink to an event in another room with the label »Message in Room 2« 1`] = `"Visit <span><bdi><a class="mx_Pill mx_EventPill" href="https://matrix.to/#/!room2:example.com/%event_id%"><span aria-label="Avatar" aria-hidden="true" data-testid="avatar-img" data-type="round" data-color="2" class="_avatar_mcap2_17 mx_BaseAvatar" style="--cpd-avatar-size: 16px;"><img loading="lazy" alt="" src="mxc://avatar.url/room.png" crossorigin="anonymous" referrerpolicy="no-referrer" class="_image_mcap2_50" data-type="round" width="16px" height="16px"></span><span class="mx_Pill_text">Message in Room 2</span></a></bdi></span>"`;
|
||||
exports[`<TextualBody /> renders plain-text m.text correctly should pillify a permalink to an event in another room with the label »Message in Room 2« 1`] = `"Visit <span><bdi><a class="mx_Pill mx_EventPill" href="https://matrix.to/#/!room2:example.com/%event_id%"><span aria-label="Avatar" aria-hidden="true" data-testid="avatar-img" data-type="round" data-color="2" class="_avatar_mcap2_17 mx_BaseAvatar" style="--cpd-avatar-size: 16px;"><img loading="lazy" alt="" src="mxc://avatar.url/room.png" referrerpolicy="no-referrer" class="_image_mcap2_50" data-type="round" width="16px" height="16px"></span><span class="mx_Pill_text">Message in Room 2</span></a></bdi></span>"`;
|
||||
|
||||
exports[`<TextualBody /> renders plain-text m.text correctly should pillify a permalink to an unknown message in the same room with the label »Message« 1`] = `
|
||||
<span
|
||||
|
|
|
@ -27,7 +27,6 @@ exports[`PeopleRoomSettingsTab with requests to join renders requests fully 1`]
|
|||
<img
|
||||
alt=""
|
||||
class="_image_mcap2_50"
|
||||
crossorigin="anonymous"
|
||||
data-type="round"
|
||||
height="42px"
|
||||
loading="lazy"
|
||||
|
|
|
@ -35,7 +35,6 @@ exports[`<AddExistingToSpaceDialog /> looks as expected 1`] = `
|
|||
<img
|
||||
alt=""
|
||||
class="_image_mcap2_50"
|
||||
crossorigin="anonymous"
|
||||
data-type="square"
|
||||
height="40px"
|
||||
loading="lazy"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue