-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Additional watched account tests (#396)
Co-authored-by: Thibaut Sardan <[email protected]>
- Loading branch information
Showing
17 changed files
with
234 additions
and
22 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
packages/ui/cypress/fixtures/watchAccounts/watchMultisigs.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,18 @@ | ||
import { watchSignatories } from './watchSignatories' | ||
|
||
export const watchMultisigs = { | ||
'multisig-with-pure': { | ||
name: 'Multisig With Pure', | ||
address: '5Fa3UUF3S6SVdXZtPrCw2tGUqxJiRJLxEGfujozfZ4xFeAKn', | ||
pureAddress: '5EfdqwwuyjjtEa4UhdjbZJu3UxHEHbzh8LMRvE13xTD7z6Wd', | ||
threshold: 2, | ||
signatories: [watchSignatories[0].address, watchSignatories[1].address] | ||
}, | ||
|
||
'multisig-without-pure': { | ||
name: 'Multisig No Pure', | ||
address: '5GysXAKXrGjNvpQruKWH3RwxtYrJqqWLN1A15gUMht6EXmzC', | ||
threshold: 2, | ||
signatories: [watchSignatories[2].address, watchSignatories[3].address] | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
packages/ui/cypress/fixtures/watchAccounts/watchSignatories.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,29 @@ | ||
export const watchSignatories = [ | ||
// signatories of multisig-with-pure | ||
{ | ||
address: '5GGjPYsz8B8mxAzNScFNDPkZ1g97VWFCPCMexPSkPnibPBez', | ||
name: 'Pure Signatory 1', | ||
type: 'sr25519', | ||
mnemonic: 'citizen heavy warrior cattle enter chef label split differ seek turtle gorilla' | ||
}, | ||
{ | ||
address: '5EkbU3anZKYP98aXF5MvmCUxvwvM4kxp7osc2Xhj1wHYL6ym', | ||
name: 'Pure Signatory 2', | ||
type: 'sr25519', | ||
mnemonic: 'script spoon elder spawn kite burst theme property hip fatal flight amount' | ||
}, | ||
|
||
// signatories of multisig-without-pure | ||
{ | ||
address: '5HfzjVSWj6mxBnqgJhPfUTpkAJKro9BKToxXB3nozbu2MTpV', | ||
name: 'No Pure Signatory 1', | ||
type: 'sr25519', | ||
mnemonic: 'spring banana desert horse ecology resist tag matrix burden heart stereo fix' | ||
}, | ||
{ | ||
address: '5Df1JyC6KSbjSp3pQEn85PCnvTtknGiN7JyE7bSZ9zqNL76E', | ||
name: 'No Pure Signatory 2', | ||
type: 'sr25519', | ||
mnemonic: 'mutual pluck punch boy gym key brush dune master aunt track dynamic' | ||
} | ||
] |
7 changes: 7 additions & 0 deletions
7
packages/ui/cypress/support/page-objects/components/accountDisplay.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,7 @@ | ||
export const accountDisplay = { | ||
identicon: () => cy.get('[data-cy=icon-identicon]'), | ||
pureBadge: () => cy.get('[data-cy=badge-pure]'), | ||
multisigBadge: () => cy.get('[data-cy=badge-multi]'), | ||
nameLabel: () => cy.get('[data-cy=label-account-name]'), | ||
addressLabel: () => cy.get('[data-cy=label-account-address]') | ||
} |
7 changes: 7 additions & 0 deletions
7
packages/ui/cypress/support/page-objects/modals/editNamesModal.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,7 @@ | ||
export const editNamesModal = { | ||
body: () => cy.get('[data-cy=modal-edit-names]'), | ||
inputEditPureName: () => cy.get('[data-cy=input-edit-pure-name]'), | ||
inputEditMultisigName: () => cy.get('[data-cy=input-edit-multisig-name]'), | ||
inputEditSignatoryName: () => cy.get('[data-cy=input-edit-signatory-name]'), | ||
saveButton: () => cy.get('[data-cy=button-save-edited-names]') | ||
} |
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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
export const multisigPage = { | ||
newTransactionButton: () => cy.get('[data-cy="button-new-transaction"]') | ||
// header elements | ||
accountHeader: () => cy.get('[data-cy=header-account]'), | ||
seeOverviewButton: () => cy.get('[data-cy=button-see-overview]'), | ||
newTransactionButton: () => cy.get('[data-cy=button-new-transaction]'), | ||
optionsMenuButton: () => cy.get('[data-cy=button-options-menu]'), | ||
editNamesMenuOption: () => cy.get('[data-cy=menu-option-edit-names]'), | ||
subscanMenuOption: () => cy.get('[data-cy=menu-option-subscan]') | ||
} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
export const notifications = { | ||
successNotificationIcon: () => cy.get('[data-cy="notification-icon-success"]'), | ||
errorNotificationIcon: () => cy.get('[data-cy="notification-icon-error"]'), | ||
loadingNotificationIcon: () => cy.get('[data-cy="notification-icon-loading"]'), | ||
notificationWrapper: () => cy.get('[data-cy="notification-wrapper"]') | ||
successNotificationIcon: () => cy.get('[data-cy=notification-icon-success]'), | ||
errorNotificationIcon: () => cy.get('[data-cy=notification-icon-error]'), | ||
loadingNotificationIcon: () => cy.get('[data-cy=notification-icon-loading]'), | ||
notificationWrapper: () => cy.get('[data-cy=notification-wrapper]') | ||
} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
export const sendTxModal = { | ||
sendTxTitle: () => cy.get('[data-cy="title-send-tx"]'), | ||
fieldTo: () => cy.get('[data-cy="field-to"]'), | ||
fieldAmount: () => cy.get('[data-cy="field-amount"]'), | ||
buttonSend: () => cy.get('[data-cy="button-send"]') | ||
sendTxTitle: () => cy.get('[data-cy=title-send-tx]'), | ||
fieldTo: () => cy.get('[data-cy=field-to]'), | ||
fieldAmount: () => cy.get('[data-cy=field-amount]'), | ||
buttonSend: () => cy.get('[data-cy=button-send]') | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
export const topMenuItems = { | ||
connectButton: () => cy.get('[data-cy="button-menu-connect"]'), | ||
multiproxySelector: () => cy.get('[data-cy="select-multiproxy"]') | ||
homeButton: () => cy.get('[data-cy=button-navigate-home]'), | ||
newMultisigButton: () => cy.get('[data-cy=button-new-multisig]'), | ||
settingsButton: () => cy.get('[data-cy=button-navigate-settings]'), | ||
overviewButton: () => cy.get('[data-cy=button-navigate-overview]'), | ||
aboutButton: () => cy.get('[data-cy=button-navigate-about]'), | ||
connectButton: () => cy.get('[data-cy=button-menu-connect]'), | ||
multiproxySelector: () => cy.get('[data-cy=select-multiproxy]', { timeout: 20000 }), | ||
multiproxySelectorOption: () => cy.get('[data-cy=select-multiproxy-option]') | ||
} |
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
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
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
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
Oops, something went wrong.