-
-
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 (#29146) * test(backup mas): use `checkDeviceIsConnectedKeyBackup` instead at looking at the *Security & Privacy* tab * doc(backup mas): fix comment
- Loading branch information
1 parent
047e8e8
commit 426a206
Showing
2 changed files
with
9 additions
and
3 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,11 @@ 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(); | ||
// Wait for the ui to load | ||
await expect(page.locator(".mx_MatrixChat")).toBeVisible(); | ||
|
||
// Recovery is not set up yet | ||
await checkDeviceIsConnectedKeyBackup(app, "1", true, false); | ||
}); | ||
|
||
test("user is prompted to set up recovery", async ({ page, mailpitClient, app }, testInfo) => { | ||
|
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