Skip to content

Commit b36d9ce

Browse files
authored
test(e2e): verify session with the encryption tab instead of the security & privacy tab (#29090)
1 parent 9b6be0f commit b36d9ce

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

playwright/e2e/crypto/utils.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -241,18 +241,19 @@ export async function logOutOfElement(page: Page, discardKeys: boolean = false)
241241
}
242242

243243
/**
244-
* Open the security settings, and verify the current session using the security key.
244+
* Open the encryption settings, and verify the current session using the security key.
245245
*
246246
* @param app - `ElementAppPage` wrapper for the playwright `Page`.
247247
* @param securityKey - The security key (i.e., 4S key), set up during a previous session.
248248
*/
249249
export async function verifySession(app: ElementAppPage, securityKey: string) {
250-
const settings = await app.settings.openUserSettings("Security & Privacy");
251-
await settings.getByRole("button", { name: "Verify this session" }).click();
250+
const settings = await app.settings.openUserSettings("Encryption");
251+
await settings.getByRole("button", { name: "Verify this device" }).click();
252252
await app.page.getByRole("button", { name: "Verify with Security Key" }).click();
253253
await app.page.locator(".mx_Dialog").locator('input[type="password"]').fill(securityKey);
254254
await app.page.getByRole("button", { name: "Continue", disabled: false }).click();
255255
await app.page.getByRole("button", { name: "Done" }).click();
256+
await app.settings.closeDialog();
256257
}
257258

258259
/**

0 commit comments

Comments
 (0)