Skip to content

Commit 698d72d

Browse files
committed
test(backup mas): use checkDeviceIsConnectedKeyBackup instead at looking at the *Security & Privacy* tab
1 parent 52b42c0 commit 698d72d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

playwright/e2e/crypto/backups-mas.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { registerAccountMas } from "../oidc";
1111
import { isDendrite } from "../../plugins/homeserver/dendrite";
1212
import { TestClientServerAPI } from "../csAPI";
1313
import { masHomeserver } from "../../plugins/homeserver/synapse/masHomeserver.ts";
14+
import { checkDeviceIsConnectedKeyBackup } from "./utils";
1415

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

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

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

0 commit comments

Comments
 (0)