File tree 1 file changed +4
-3
lines changed
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)
241
241
}
242
242
243
243
/**
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.
245
245
*
246
246
* @param app - `ElementAppPage` wrapper for the playwright `Page`.
247
247
* @param securityKey - The security key (i.e., 4S key), set up during a previous session.
248
248
*/
249
249
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 ( ) ;
252
252
await app . page . getByRole ( "button" , { name : "Verify with Security Key" } ) . click ( ) ;
253
253
await app . page . locator ( ".mx_Dialog" ) . locator ( 'input[type="password"]' ) . fill ( securityKey ) ;
254
254
await app . page . getByRole ( "button" , { name : "Continue" , disabled : false } ) . click ( ) ;
255
255
await app . page . getByRole ( "button" , { name : "Done" } ) . click ( ) ;
256
+ await app . settings . closeDialog ( ) ;
256
257
}
257
258
258
259
/**
You can’t perform that action at this time.
0 commit comments