Skip to content

Commit

Permalink
test(backup mas): use checkDeviceIsConnectedKeyBackup instead at lo…
Browse files Browse the repository at this point in the history
…oking at the *Security & Privacy* tab
  • Loading branch information
florianduros committed Jan 30, 2025
1 parent 12932e2 commit b6bd4b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playwright/e2e/crypto/backups-mas.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { registerAccountMas } from "../oidc";
import { isDendrite } from "../../plugins/homeserver/dendrite";
import { TestClientServerAPI } from "../csAPI";
import { masHomeserver } from "../../plugins/homeserver/synapse/masHomeserver.ts";
import { checkDeviceIsConnectedKeyBackup } from "./utils";

// These tests register an account with MAS because then we go through the "normal" registration flow
// and crypto gets set up. Using the 'user' fixture create a user and synthesizes an existing login,
Expand All @@ -24,8 +25,7 @@ test.describe("Encryption state after registration", () => {
await page.getByRole("button", { name: "Continue" }).click();
await registerAccountMas(page, mailpitClient, `alice_${testInfo.testId}`, "[email protected]", "Pa$sW0rD!");

await app.settings.openUserSettings("Security & Privacy");
await expect(page.getByText("This session is backing up your keys.")).toBeVisible();
await checkDeviceIsConnectedKeyBackup(app, "1", true);
});

test("user is prompted to set up recovery", async ({ page, mailpitClient, app }, testInfo) => {
Expand Down

0 comments on commit b6bd4b7

Please sign in to comment.