-
-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! test(suite-web): add a test for t3t1 multishare backup
- Loading branch information
1 parent
d0683e0
commit 56f9431
Showing
5 changed files
with
60 additions
and
36 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
packages/suite-web/e2e/support/pageObjects/multiShareBackupObject.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/// <reference types="cypress" /> | ||
|
||
class MultiShareBackupModal { | ||
createMultiShareBackup(): void { | ||
cy.getTestElement('@multi-share-backup/checkbox/1').click(); | ||
cy.getTestElement('@multi-share-backup/checkbox/2').click(); | ||
cy.getTestElement('@multi-share-backup/1st-info/submit-button').click(); | ||
cy.getTestElement('@multi-share-backup/2nd-info/submit-button').click(); | ||
} | ||
|
||
finalizeMultiShareBackup(): void { | ||
cy.getTestElement('@multi-share-backup/done/got-it-button').should('be.visible').click(); | ||
} | ||
} | ||
|
||
export const onMultiShareBackupModal = new MultiShareBackupModal(); |
12 changes: 12 additions & 0 deletions
12
packages/suite-web/e2e/support/pageObjects/settingsDeviceObject.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/// <reference types="cypress" /> | ||
|
||
class SettingsDevicePage { | ||
openCreateMultiShareBackup(): void { | ||
cy.getTestElement('@settings/device/create-multi-share-backup-button') | ||
.should('be.visible') | ||
.click(); | ||
cy.getTestElement('@multi-share-backup/1st-info/submit-button').should('be.visible'); | ||
} | ||
} | ||
|
||
export const onSettingsDevicePage = new SettingsDevicePage(); |
9 changes: 9 additions & 0 deletions
9
packages/suite-web/e2e/support/pageObjects/settingsMenuObject.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/// <reference types="cypress" /> | ||
|
||
class SettingsMenu { | ||
openDeviceSettings(): void { | ||
cy.getTestElement('@settings/menu/device').should('be.visible').click(); | ||
} | ||
} | ||
|
||
export const onSettingsMenu = new SettingsMenu(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters