-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(backup mas): use
checkDeviceIsConnectedKeyBackup
instead at lo…
…oking at the *Security & Privacy* tab
- Loading branch information
1 parent
12932e2
commit b6bd4b7
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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, | ||
|
@@ -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) => { | ||
|