From 8044ce4c013a3b93ed522fc8833969c12e801f79 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 13 Sep 2024 12:34:15 +0100 Subject: [PATCH] Fix tests Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- .../structures/__snapshots__/RoomView-test.tsx.snap | 12 ++++++------ .../InteractiveAuthEntryComponents-test.tsx.snap | 4 ++-- .../ManageRestrictedJoinRuleDialog-test.tsx.snap | 8 ++++---- .../ManualDeviceKeyVerificationDialog-test.tsx.snap | 8 ++++---- .../views/settings/CryptographyPanel-test.tsx | 2 +- .../__snapshots__/SecureBackupPanel-test.tsx.snap | 4 ++-- .../SetIntegrationManager-test.tsx.snap | 4 ++-- .../__snapshots__/LoginWithQRFlow-test.tsx.snap | 4 ++-- .../SecurityRoomSettingsTab-test.tsx.snap | 4 ++-- .../SecurityUserSettingsTab-test.tsx.snap | 8 ++++---- .../SpaceSettingsVisibilityTab-test.tsx.snap | 4 ++-- .../__snapshots__/HTMLExport-test.ts.snap | 2 +- 12 files changed, 32 insertions(+), 32 deletions(-) diff --git a/test/components/structures/__snapshots__/RoomView-test.tsx.snap b/test/components/structures/__snapshots__/RoomView-test.tsx.snap index 569fe3640c..2432e30a22 100644 --- a/test/components/structures/__snapshots__/RoomView-test.tsx.snap +++ b/test/components/structures/__snapshots__/RoomView-test.tsx.snap @@ -370,9 +370,9 @@ exports[`RoomView for a local room in state ERROR should match the snapshot 1`]
Send your first message to invite - + @user:example.com - + to chat
@@ -625,9 +625,9 @@ exports[`RoomView for a local room in state NEW should match the snapshot 1`] =Send your first message to invite - + @user:example.com - + to chat
@@ -952,9 +952,9 @@ exports[`RoomView for a local room in state NEW that is encrypted should match tSend your first message to invite - + @user:example.com - + to chat
diff --git a/test/components/views/auth/__snapshots__/InteractiveAuthEntryComponents-test.tsx.snap b/test/components/views/auth/__snapshots__/InteractiveAuthEntryComponents-test.tsx.snap index 65f86a35d2..4e03a26f02 100644 --- a/test/components/views/auth/__snapshots__/InteractiveAuthEntryComponents-test.tsx.snap +++ b/test/components/views/auth/__snapshots__/InteractiveAuthEntryComponents-test.tsx.snap @@ -8,9 +8,9 @@ exports[`To create your account, open the link in the email we just sent to - + alice@example.xyz - + .
diff --git a/test/components/views/dialogs/__snapshots__/ManageRestrictedJoinRuleDialog-test.tsx.snap b/test/components/views/dialogs/__snapshots__/ManageRestrictedJoinRuleDialog-test.tsx.snap index 08f299fec7..cf01ac63b6 100644 --- a/test/components/views/dialogs/__snapshots__/ManageRestrictedJoinRuleDialog-test.tsx.snap +++ b/test/components/views/dialogs/__snapshots__/ManageRestrictedJoinRuleDialog-test.tsx.snap @@ -26,9 +26,9 @@ exports[`Decide which spaces can access this room. If a space is selected, its members can find and join - + !roomId:server - + .
@@ -176,9 +176,9 @@ exports[`Decide which spaces can access this room. If a space is selected, its members can find and join - + !roomId:server - + .
diff --git a/test/components/views/dialogs/__snapshots__/ManualDeviceKeyVerificationDialog-test.tsx.snap b/test/components/views/dialogs/__snapshots__/ManualDeviceKeyVerificationDialog-test.tsx.snap index 8d493a9655..1186f06f38 100644 --- a/test/components/views/dialogs/__snapshots__/ManualDeviceKeyVerificationDialog-test.tsx.snap +++ b/test/components/views/dialogs/__snapshots__/ManualDeviceKeyVerificationDialog-test.tsx.snap @@ -66,9 +66,9 @@ exports[`ManualDeviceKeyVerificationDialog should display the device 1`] = `
-
+
ABCD EFGH
-
+
@@ -181,9 +181,9 @@ exports[`ManualDeviceKeyVerificationDialog should display the device of another
-
+
ABCD EFGH
-
+
diff --git a/test/components/views/settings/CryptographyPanel-test.tsx b/test/components/views/settings/CryptographyPanel-test.tsx
index a993829e37..712ca18b53 100644
--- a/test/components/views/settings/CryptographyPanel-test.tsx
+++ b/test/components/views/settings/CryptographyPanel-test.tsx
@@ -18,7 +18,7 @@ describe("CryptographyPanel", () => {
it("shows the session ID and key", () => {
const sessionId = "ABCDEFGHIJ";
const sessionKey = "AbCDeFghIJK7L/m4nOPqRSTUVW4xyzaBCDef6gHIJkl";
- const sessionKeyFormatted = "AbCD eFgh IJK7 L/m4 nOPq RSTU VW4x yzaB CDef 6gHI Jkl";
+ const sessionKeyFormatted = "AbCD eFgh IJK7 L/m4 nOPq RSTU VW4x yzaB CDef 6gHI Jkl";
TestUtils.stubClient();
const client: MatrixClient = MatrixClientPeg.safeGet();
diff --git a/test/components/views/settings/__snapshots__/SecureBackupPanel-test.tsx.snap b/test/components/views/settings/__snapshots__/SecureBackupPanel-test.tsx.snap
index 718df62fee..ca51d4dc59 100644
--- a/test/components/views/settings/__snapshots__/SecureBackupPanel-test.tsx.snap
+++ b/test/components/views/settings/__snapshots__/SecureBackupPanel-test.tsx.snap
@@ -79,9 +79,9 @@ exports[`
-
+
It's not recommended to make encrypted rooms public.
-
+
It will mean anyone can find and join the room, so anyone can read messages. You'll get none of the benefits of encryption. Encrypting messages in a public room will make receiving and sending messages slower.
diff --git a/test/components/views/settings/tabs/user/__snapshots__/SecurityUserSettingsTab-test.tsx.snap b/test/components/views/settings/tabs/user/__snapshots__/SecurityUserSettingsTab-test.tsx.snap
index 4ccca2a02c..8a01587e16 100644
--- a/test/components/views/settings/tabs/user/__snapshots__/SecurityUserSettingsTab-test.tsx.snap
+++ b/test/components/views/settings/tabs/user/__snapshots__/SecurityUserSettingsTab-test.tsx.snap
@@ -48,9 +48,9 @@ exports[`
-
+
<not supported>
-
+
Allow people to preview your space before they join.
-
+
Recommended for public spaces.
-
+
created this room.
This is the start of export of !myroom:example.org. Exported by @userId:matrix.org at 11/17/2022.
+ created this room.
This is the start of export of !myroom:example.org. Exported by @userId:matrix.org at 11/17/2022.