You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-29 15:23:11 +03:00
Cypress: Check that the new verified device is connected to key backup (#11686)
* Check that the new verified device is connected to key backup * Review changes. Extract key backup verification in its own function and chang parameter order of bot `bootstrapSecretStorage` call.
This commit is contained in:
@@ -97,6 +97,19 @@ export function checkDeviceIsCrossSigned(): void {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Check that the current device is connected to the key backup.
|
||||
*/
|
||||
export function checkDeviceIsConnectedKeyBackup() {
|
||||
cy.findByRole("button", { name: "User menu" }).click();
|
||||
cy.get(".mx_UserMenu_contextMenu").within(() => {
|
||||
cy.findByRole("menuitem", { name: "Security & Privacy" }).click();
|
||||
});
|
||||
cy.get(".mx_Dialog").within(() => {
|
||||
cy.findByRole("button", { name: "Restore from Backup" }).should("exist");
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Fill in the login form in element with the given creds.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user