diff --git a/test/unit-tests/components/structures/RoomView-test.tsx b/test/unit-tests/components/structures/RoomView-test.tsx index 58a26ab73e..4449533392 100644 --- a/test/unit-tests/components/structures/RoomView-test.tsx +++ b/test/unit-tests/components/structures/RoomView-test.tsx @@ -594,12 +594,14 @@ describe("RoomView", () => { const { container } = await renderRoomView(); // We no longer show the grey shield for encrypted rooms, so it should not be there. - await waitFor(() => expect(container.querySelector(".mx_E2EIcon_normal")).not.toBeInTheDocument()); + await waitFor(() => expect(container.querySelector(".mx_E2EIcon")).not.toBeInTheDocument()); const verificationStatus = new UserVerificationStatus(true, true, false); jest.spyOn(cli.getCrypto()!, "getUserVerificationStatus").mockResolvedValue(verificationStatus); cli.emit(CryptoEvent.UserTrustStatusChanged, cli.getSafeUserId(), verificationStatus); - await waitFor(() => expect(container.querySelector(".mx_E2EIcon_verified")).toBeInTheDocument()); + await waitFor(() => + expect(container.querySelector(".mx_E2EIcon")).toHaveAccessibleName("Everyone in this room is verified"), + ); }); describe("video rooms", () => { diff --git a/test/unit-tests/components/structures/__snapshots__/MessagePanel-test.tsx.snap b/test/unit-tests/components/structures/__snapshots__/MessagePanel-test.tsx.snap index 91a7bfb531..77540f0b86 100644 --- a/test/unit-tests/components/structures/__snapshots__/MessagePanel-test.tsx.snap +++ b/test/unit-tests/components/structures/__snapshots__/MessagePanel-test.tsx.snap @@ -63,6 +63,17 @@ exports[`MessagePanel should handle lots of membership events quickly 1`] = `
+ + +
diff --git a/test/unit-tests/components/structures/__snapshots__/RoomView-test.tsx.snap b/test/unit-tests/components/structures/__snapshots__/RoomView-test.tsx.snap index b7b3034415..9dea69a17c 100644 --- a/test/unit-tests/components/structures/__snapshots__/RoomView-test.tsx.snap +++ b/test/unit-tests/components/structures/__snapshots__/RoomView-test.tsx.snap @@ -141,8 +141,20 @@ exports[`RoomView for a local room in state ERROR should match the snapshot 1`] class="mx_NewRoomIntro" >
+ + +
@@ -311,8 +323,20 @@ exports[`RoomView for a local room in state NEW should match the snapshot 1`] = class="mx_NewRoomIntro" >
+ + +
@@ -676,6 +700,17 @@ exports[`RoomView for a local room in state NEW that is encrypted should match t
+ + +
@@ -2974,7 +3009,7 @@ exports[`RoomView should not display the timeline when the room encryption is lo style="width: 12px; height: 12px;" > should display the dialog for the device of a style="width: 24px; height: 24px;" > should display the dialog for the device of t style="width: 24px; height: 24px;" > should render a single device - signed by owner 1`] = ` data-testid="e2e-icon" > should render a single device - unsigned 1`] = ` data-testid="e2e-icon" > should render a single device - verified by cross-signing 1`] data-testid="e2e-icon" > should render a single user 1`] = ` data-testid="e2e-icon" > should render a single user 1`] = ` data-testid="e2e-icon" > should render a single user 1`] = ` data-testid="e2e-icon" > should render a single user 1`] = ` data-testid="e2e-icon" > + > + + + +