diff --git a/test/components/structures/MatrixChat-test.tsx b/test/components/structures/MatrixChat-test.tsx index 771ed1e131..4d1f78af97 100644 --- a/test/components/structures/MatrixChat-test.tsx +++ b/test/components/structures/MatrixChat-test.tsx @@ -1019,7 +1019,7 @@ describe("", () => { await getComponentAndLogin(true); - expect(loginClient.getCrypto()!.userHasCrossSigningKeys).not.toHaveBeenCalled(); + expect(screen.getByRole("heading", { name: "Welcome Ernie" })).toBeInTheDocument(); }); it("should go straight to logged in view when user does not have cross signing keys and server does not support cross signing", async () => {