From 580bc8771c6ddaee2733a89e6816eb6f94fa18ba Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Wed, 15 May 2024 15:34:27 +0200 Subject: [PATCH] Fix avatar in chat export (#12537) * Update `@vector-im/compound-web` * Update test snapshots --- package.json | 2 +- .../views/elements/__snapshots__/AppTile-test.tsx.snap | 3 --- test/components/views/messages/TextualBody-test.tsx | 2 +- .../messages/__snapshots__/TextualBody-test.tsx.snap | 8 ++------ .../__snapshots__/PeopleRoomSettingsTab-test.tsx.snap | 1 - .../__snapshots__/AddExistingToSpaceDialog-test.tsx.snap | 1 - yarn.lock | 8 ++++---- 7 files changed, 8 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index 62eca6b344..181b2e77b9 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,7 @@ "@sentry/browser": "^7.0.0", "@testing-library/react-hooks": "^8.0.1", "@vector-im/compound-design-tokens": "^1.2.0", - "@vector-im/compound-web": "^4.2.0", + "@vector-im/compound-web": "^4.3.1", "@zxcvbn-ts/core": "^3.0.4", "@zxcvbn-ts/language-common": "^3.0.4", "@zxcvbn-ts/language-en": "^3.0.2", diff --git a/test/components/views/elements/__snapshots__/AppTile-test.tsx.snap b/test/components/views/elements/__snapshots__/AppTile-test.tsx.snap index 4b84fa46c6..8f36256547 100644 --- a/test/components/views/elements/__snapshots__/AppTile-test.tsx.snap +++ b/test/components/views/elements/__snapshots__/AppTile-test.tsx.snap @@ -116,7 +116,6 @@ exports[`AppTile for a pinned widget should render 1`] = ` ", () => { 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 aee9cc6d59..96bb641f9b 100644 --- a/test/components/views/messages/__snapshots__/TextualBody-test.tsx.snap +++ b/test/components/views/messages/__snapshots__/TextualBody-test.tsx.snap @@ -65,7 +65,6 @@ exports[` renders formatted m.text correctly pills appear for an renders formatted m.text correctly pills appear for eve renders formatted m.text correctly pills appear for roo renders formatted m.text correctly pills get injected c renders formatted m.text correctly pills get injected c `; -exports[` 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 Message from Member"`; +exports[` 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 Message from Member"`; -exports[` 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 Message in Room 2"`; +exports[` 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 Message in Room 2"`; exports[` renders plain-text m.text correctly should pillify a permalink to an unknown message in the same room with the label »Message« 1`] = ` looks as expected 1`] = `