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 t

Send 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[` should render 1`] = `

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[` should list spaces which are not par

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[` should render empty state 1`] = `

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[` suggests connecting session to key backup when ba > This session is - + not backing up your keys - + , but you do have an existing backup you can restore from and add to going forward. diff --git a/test/components/views/settings/__snapshots__/SetIntegrationManager-test.tsx.snap b/test/components/views/settings/__snapshots__/SetIntegrationManager-test.tsx.snap index cde822f6ab..9dab61f8b2 100644 --- a/test/components/views/settings/__snapshots__/SetIntegrationManager-test.tsx.snap +++ b/test/components/views/settings/__snapshots__/SetIntegrationManager-test.tsx.snap @@ -41,9 +41,9 @@ exports[`SetIntegrationManager should render manage integrations sections 1`] = > Use an integration manager - + (scalar.vector.im) - + to manage bots, widgets, and sticker packs. diff --git a/test/components/views/settings/devices/__snapshots__/LoginWithQRFlow-test.tsx.snap b/test/components/views/settings/devices/__snapshots__/LoginWithQRFlow-test.tsx.snap index 49a5f271b1..d9f6518f52 100644 --- a/test/components/views/settings/devices/__snapshots__/LoginWithQRFlow-test.tsx.snap +++ b/test/components/views/settings/devices/__snapshots__/LoginWithQRFlow-test.tsx.snap @@ -1067,9 +1067,9 @@ exports[` renders QR code 1`] = `
  • Select " - + Sign in with QR code - + "
  • diff --git a/test/components/views/settings/tabs/room/__snapshots__/SecurityRoomSettingsTab-test.tsx.snap b/test/components/views/settings/tabs/room/__snapshots__/SecurityRoomSettingsTab-test.tsx.snap index 5f3851cd83..a4579bc970 100644 --- a/test/components/views/settings/tabs/room/__snapshots__/SecurityRoomSettingsTab-test.tsx.snap +++ b/test/components/views/settings/tabs/room/__snapshots__/SecurityRoomSettingsTab-test.tsx.snap @@ -178,9 +178,9 @@ exports[` join rule warns when trying to make an encr

    - + 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[` renders security section 1`] = ` > Use an integration manager - + (scalar.vector.im) - + to manage bots, widgets, and sticker packs. @@ -332,9 +332,9 @@ exports[` renders security section 1`] = ` - + <not supported> - + diff --git a/test/components/views/spaces/__snapshots__/SpaceSettingsVisibilityTab-test.tsx.snap b/test/components/views/spaces/__snapshots__/SpaceSettingsVisibilityTab-test.tsx.snap index 60a1dac734..16528bce19 100644 --- a/test/components/views/spaces/__snapshots__/SpaceSettingsVisibilityTab-test.tsx.snap +++ b/test/components/views/spaces/__snapshots__/SpaceSettingsVisibilityTab-test.tsx.snap @@ -143,9 +143,9 @@ exports[` renders container 1`] = `

    Allow people to preview your space before they join.
    - + Recommended for public spaces. - +

    diff --git a/test/utils/exportUtils/__snapshots__/HTMLExport-test.ts.snap b/test/utils/exportUtils/__snapshots__/HTMLExport-test.ts.snap index 4eb9720b9b..cd1f63aa8b 100644 --- a/test/utils/exportUtils/__snapshots__/HTMLExport-test.ts.snap +++ b/test/utils/exportUtils/__snapshots__/HTMLExport-test.ts.snap @@ -58,7 +58,7 @@ exports[`HTMLExport should export 1`] = `
    !

    !myroom:example.org

    -

    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.