File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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 */
249249export 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/**
You can’t perform that action at this time.
0 commit comments