From b36d9ce32ecc43c73215b5df18ad4ea77181bb89 Mon Sep 17 00:00:00 2001 From: Florian Duros Date: Fri, 24 Jan 2025 16:03:59 +0100 Subject: [PATCH] test(e2e): verify session with the encryption tab instead of the security & privacy tab (#29090) --- playwright/e2e/crypto/utils.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/playwright/e2e/crypto/utils.ts b/playwright/e2e/crypto/utils.ts index 441f44eba8..2c8fb7d3c1 100644 --- a/playwright/e2e/crypto/utils.ts +++ b/playwright/e2e/crypto/utils.ts @@ -241,18 +241,19 @@ export async function logOutOfElement(page: Page, discardKeys: boolean = false) } /** - * Open the security settings, and verify the current session using the security key. + * Open the encryption settings, and verify the current session using the security key. * * @param app - `ElementAppPage` wrapper for the playwright `Page`. * @param securityKey - The security key (i.e., 4S key), set up during a previous session. */ export async function verifySession(app: ElementAppPage, securityKey: string) { - const settings = await app.settings.openUserSettings("Security & Privacy"); - await settings.getByRole("button", { name: "Verify this session" }).click(); + const settings = await app.settings.openUserSettings("Encryption"); + await settings.getByRole("button", { name: "Verify this device" }).click(); await app.page.getByRole("button", { name: "Verify with Security Key" }).click(); await app.page.locator(".mx_Dialog").locator('input[type="password"]').fill(securityKey); await app.page.getByRole("button", { name: "Continue", disabled: false }).click(); await app.page.getByRole("button", { name: "Done" }).click(); + await app.settings.closeDialog(); } /**