From 881c3d715a10c9c562ead0ac4c3a216ec3ea9ec7 Mon Sep 17 00:00:00 2001
From: Michael Telatynski <7t3chguy@gmail.com>
Date: Mon, 4 Sep 2023 20:27:41 +0100
Subject: [PATCH] Update snapshots of Compound Avatars
---
.../structures/__snapshots__/RoomView-test.tsx.snap | 7 -------
.../structures/__snapshots__/SpaceHierarchy-test.tsx.snap | 4 ----
.../views/elements/__snapshots__/AppTile-test.tsx.snap | 4 ----
.../views/elements/__snapshots__/Pill-test.tsx.snap | 8 --------
test/components/views/messages/TextualBody-test.tsx | 2 +-
.../messages/__snapshots__/TextualBody-test.tsx.snap | 6 ------
.../right_panel/__snapshots__/UserInfo-test.tsx.snap | 1 -
.../views/rooms/__snapshots__/RoomHeader-test.tsx.snap | 1 -
.../rooms/__snapshots__/RoomPreviewBar-test.tsx.snap | 5 -----
.../views/rooms/__snapshots__/RoomTile-test.tsx.snap | 4 ----
.../__snapshots__/PeopleRoomSettingsTab-test.tsx.snap | 1 -
.../__snapshots__/AddExistingToSpaceDialog-test.tsx.snap | 1 -
.../exportUtils/__snapshots__/HTMLExport-test.ts.snap | 6 +++---
13 files changed, 4 insertions(+), 46 deletions(-)
diff --git a/test/components/structures/__snapshots__/RoomView-test.tsx.snap b/test/components/structures/__snapshots__/RoomView-test.tsx.snap
index 1efaa2bbb59..19df74f76d6 100644
--- a/test/components/structures/__snapshots__/RoomView-test.tsx.snap
+++ b/test/components/structures/__snapshots__/RoomView-test.tsx.snap
@@ -24,7 +24,6 @@ exports[`RoomView for a local room in state CREATING should match the snapshot 1
data-type="round"
role="presentation"
style="--cpd-avatar-size: 24px;"
- title="@user:example.com"
>
u
@@ -107,7 +106,6 @@ exports[`RoomView for a local room in state ERROR should match the snapshot 1`]
data-type="round"
role="presentation"
style="--cpd-avatar-size: 24px;"
- title="@user:example.com"
>
u
@@ -187,7 +185,6 @@ exports[`RoomView for a local room in state ERROR should match the snapshot 1`]
data-type="round"
role="button"
style="--cpd-avatar-size: 52px;"
- title="@user:example.com"
>
u
@@ -276,7 +273,6 @@ exports[`RoomView for a local room in state NEW should match the snapshot 1`] =
data-type="round"
role="presentation"
style="--cpd-avatar-size: 24px;"
- title="@user:example.com"
>
u
@@ -356,7 +352,6 @@ exports[`RoomView for a local room in state NEW should match the snapshot 1`] =
data-type="round"
role="button"
style="--cpd-avatar-size: 52px;"
- title="@user:example.com"
>
u
@@ -520,7 +515,6 @@ exports[`RoomView for a local room in state NEW that is encrypted should match t
data-type="round"
role="presentation"
style="--cpd-avatar-size: 24px;"
- title="@user:example.com"
>
u
@@ -599,7 +593,6 @@ exports[`RoomView for a local room in state NEW that is encrypted should match t
data-type="round"
role="button"
style="--cpd-avatar-size: 52px;"
- title="@user:example.com"
>
u
diff --git a/test/components/structures/__snapshots__/SpaceHierarchy-test.tsx.snap b/test/components/structures/__snapshots__/SpaceHierarchy-test.tsx.snap
index 407bf372bc1..c99d5ee07d6 100644
--- a/test/components/structures/__snapshots__/SpaceHierarchy-test.tsx.snap
+++ b/test/components/structures/__snapshots__/SpaceHierarchy-test.tsx.snap
@@ -77,7 +77,6 @@ exports[`SpaceHierarchy renders 1`] = `
data-type="round"
role="presentation"
style="--cpd-avatar-size: 20px;"
- title="room-id-2"
>
U
@@ -148,7 +147,6 @@ exports[`SpaceHierarchy renders 1`] = `
data-type="round"
role="presentation"
style="--cpd-avatar-size: 20px;"
- title="room-id-3"
>
U
@@ -220,7 +218,6 @@ exports[`SpaceHierarchy renders 1`] = `
data-type="round"
role="presentation"
style="--cpd-avatar-size: 20px;"
- title="space-id-4"
>
N
@@ -298,7 +295,6 @@ exports[`SpaceHierarchy renders 1`] = `
data-type="round"
role="presentation"
style="--cpd-avatar-size: 20px;"
- title="room-id-5"
>
N
diff --git a/test/components/views/elements/__snapshots__/AppTile-test.tsx.snap b/test/components/views/elements/__snapshots__/AppTile-test.tsx.snap
index 5f30df761f3..0f4abf5cb52 100644
--- a/test/components/views/elements/__snapshots__/AppTile-test.tsx.snap
+++ b/test/components/views/elements/__snapshots__/AppTile-test.tsx.snap
@@ -109,7 +109,6 @@ exports[`AppTile for a pinned widget should render 1`] = `
data-testid="avatar-img"
data-type="round"
style="--cpd-avatar-size: 20px;"
- title=""
>
u
@@ -353,7 +350,6 @@ exports[`AppTile preserves non-persisted widget on container move 1`] = `
data-testid="avatar-img"
data-type="round"
style="--cpd-avatar-size: 20px;"
- title=""
>
should render the expected pill for @room 1`] = `
data-type="round"
role="presentation"
style="--cpd-avatar-size: 16px;"
- title="!room1:example.com"
>
R
@@ -73,7 +72,6 @@ exports[` should render the expected pill for a known user not in the room
data-type="round"
role="presentation"
style="--cpd-avatar-size: 16px;"
- title="@user2:example.com"
>
U
@@ -105,7 +103,6 @@ exports[` should render the expected pill for a message in another room 1`
data-type="round"
role="presentation"
style="--cpd-avatar-size: 16px;"
- title="!room1:example.com"
>
R
@@ -137,7 +134,6 @@ exports[` should render the expected pill for a message in the same room 1
data-type="round"
role="presentation"
style="--cpd-avatar-size: 16px;"
- title="@user1:example.com"
>
U
@@ -169,7 +165,6 @@ exports[` should render the expected pill for a room alias 1`] = `
data-type="round"
role="presentation"
style="--cpd-avatar-size: 16px;"
- title="!room1:example.com"
>
R
@@ -201,7 +196,6 @@ exports[` should render the expected pill for a space 1`] = `
data-type="round"
role="presentation"
style="--cpd-avatar-size: 16px;"
- title="!space1:example.com"
>
S
@@ -256,7 +250,6 @@ exports[` when rendering a pill for a room should render the expected pill
data-type="round"
role="presentation"
style="--cpd-avatar-size: 16px;"
- title="!room1:example.com"
>
R
@@ -288,7 +281,6 @@ exports[` when rendering a pill for a user in the room should render as ex
data-type="round"
role="presentation"
style="--cpd-avatar-size: 16px;"
- title="@user1:example.com"
>
U
diff --git a/test/components/views/messages/TextualBody-test.tsx b/test/components/views/messages/TextualBody-test.tsx
index b2e09fa48f2..ab5a453bae7 100644
--- a/test/components/views/messages/TextualBody-test.tsx
+++ b/test/components/views/messages/TextualBody-test.tsx
@@ -199,7 +199,7 @@ describe("", () => {
const { container } = getComponent({ mxEvent: ev });
const content = container.querySelector(".mx_EventTile_body");
expect(content.innerHTML).toMatchInlineSnapshot(
- `"Chat with Member"`,
+ `"Chat with Member"`,
);
});
diff --git a/test/components/views/messages/__snapshots__/TextualBody-test.tsx.snap b/test/components/views/messages/__snapshots__/TextualBody-test.tsx.snap
index 518e2b82995..81c28475a0d 100644
--- a/test/components/views/messages/__snapshots__/TextualBody-test.tsx.snap
+++ b/test/components/views/messages/__snapshots__/TextualBody-test.tsx.snap
@@ -62,7 +62,6 @@ exports[` renders formatted m.text correctly pills appear for an
data-testid="avatar-img"
data-type="round"
style="--cpd-avatar-size: 16px;"
- title="@member:domain.bla"
>
renders formatted m.text correctly pills appear for eve
data-testid="avatar-img"
data-type="round"
style="--cpd-avatar-size: 16px;"
- title="!room1:example.com"
>
renders formatted m.text correctly pills appear for roo
data-testid="avatar-img"
data-type="round"
style="--cpd-avatar-size: 16px;"
- title="!room1:example.com"
>
renders formatted m.text correctly pills get injected c
data-testid="avatar-img"
data-type="round"
style="--cpd-avatar-size: 16px;"
- title="@member:domain.bla"
>
renders plain-text m.text correctly should pillify a pe
href="https://matrix.to/#/!room1:example.com/%event_id%"
aria-describedby="mx_Pill_0.123456"
> renders plain-text m.text correctly should pillify a pe
href="https://matrix.to/#/!room2:example.com/%event_id%"
aria-describedby="mx_Pill_0.123456"
> with crypto enabled renders 1`] = `
data-type="round"
role="button"
style="--cpd-avatar-size: 230.39999999999998px;"
- title="@user:example.com"
>
u
diff --git a/test/components/views/rooms/__snapshots__/RoomHeader-test.tsx.snap b/test/components/views/rooms/__snapshots__/RoomHeader-test.tsx.snap
index c501271b371..345a05ff67a 100644
--- a/test/components/views/rooms/__snapshots__/RoomHeader-test.tsx.snap
+++ b/test/components/views/rooms/__snapshots__/RoomHeader-test.tsx.snap
@@ -13,7 +13,6 @@ exports[`RoomHeader does not show the face pile for DMs 1`] = `
data-type="round"
role="presentation"
style="--cpd-avatar-size: 40px;"
- title="!1:example.org"
>
!
diff --git a/test/components/views/rooms/__snapshots__/RoomPreviewBar-test.tsx.snap b/test/components/views/rooms/__snapshots__/RoomPreviewBar-test.tsx.snap
index 8de940ba83f..d193fbea780 100644
--- a/test/components/views/rooms/__snapshots__/RoomPreviewBar-test.tsx.snap
+++ b/test/components/views/rooms/__snapshots__/RoomPreviewBar-test.tsx.snap
@@ -29,7 +29,6 @@ exports[` message case AskToJoin renders the corresponding mes
data-type="round"
role="presentation"
style="--cpd-avatar-size: 36px;"
- title="RoomPreviewBar-test-room"
>
R
@@ -55,7 +54,6 @@ exports[` message case AskToJoin renders the corresponding mes
data-type="round"
role="presentation"
style="--cpd-avatar-size: 36px;"
- title=""
>
?
@@ -222,7 +220,6 @@ exports[` with an invite with an invited email when client has
data-type="round"
role="presentation"
style="--cpd-avatar-size: 36px;"
- title="RoomPreviewBar-test-room"
>
R
@@ -281,7 +278,6 @@ exports[` with an invite without an invited email for a dm roo
data-type="round"
role="presentation"
style="--cpd-avatar-size: 36px;"
- title="RoomPreviewBar-test-room"
>
R
@@ -347,7 +343,6 @@ exports[` with an invite without an invited email for a non-dm
data-type="round"
role="presentation"
style="--cpd-avatar-size: 36px;"
- title="RoomPreviewBar-test-room"
>
R
diff --git a/test/components/views/rooms/__snapshots__/RoomTile-test.tsx.snap b/test/components/views/rooms/__snapshots__/RoomTile-test.tsx.snap
index 358c377db27..0ece644a769 100644
--- a/test/components/views/rooms/__snapshots__/RoomTile-test.tsx.snap
+++ b/test/components/views/rooms/__snapshots__/RoomTile-test.tsx.snap
@@ -20,7 +20,6 @@ exports[`RoomTile when message previews are enabled and there is a message in a
data-type="round"
role="presentation"
style="--cpd-avatar-size: 32px;"
- title="!1:example.org"
>
!
@@ -95,7 +94,6 @@ exports[`RoomTile when message previews are enabled and there is a message in th
data-type="round"
role="presentation"
style="--cpd-avatar-size: 32px;"
- title="!1:example.org"
>
!
@@ -170,7 +168,6 @@ exports[`RoomTile when message previews are enabled should render a room without
data-type="round"
role="presentation"
style="--cpd-avatar-size: 32px;"
- title="!1:example.org"
>
!
@@ -233,7 +230,6 @@ exports[`RoomTile when message previews are not enabled should render the room 1
data-type="round"
role="presentation"
style="--cpd-avatar-size: 32px;"
- title="!1:example.org"
>
!
diff --git a/test/components/views/settings/tabs/room/__snapshots__/PeopleRoomSettingsTab-test.tsx.snap b/test/components/views/settings/tabs/room/__snapshots__/PeopleRoomSettingsTab-test.tsx.snap
index 8e6a9aa46aa..530997bcc4c 100644
--- a/test/components/views/settings/tabs/room/__snapshots__/PeopleRoomSettingsTab-test.tsx.snap
+++ b/test/components/views/settings/tabs/room/__snapshots__/PeopleRoomSettingsTab-test.tsx.snap
@@ -33,7 +33,6 @@ exports[`PeopleRoomSettingsTab with requests to join renders requests fully 1`]
loading="lazy"
referrerpolicy="no-referrer"
src="mxc://example.org/albert-einstein.png"
- title="@albert.einstein:example.org"
width="42px"
/>
diff --git a/test/components/views/spaces/__snapshots__/AddExistingToSpaceDialog-test.tsx.snap b/test/components/views/spaces/__snapshots__/AddExistingToSpaceDialog-test.tsx.snap
index 487a9006d75..b47b2bf075f 100644
--- a/test/components/views/spaces/__snapshots__/AddExistingToSpaceDialog-test.tsx.snap
+++ b/test/components/views/spaces/__snapshots__/AddExistingToSpaceDialog-test.tsx.snap
@@ -31,7 +31,6 @@ exports[` looks as expected 1`] = `
data-testid="avatar-img"
data-type="square"
style="--cpd-avatar-size: 40px;"
- title="!spaceid:example.com"
>