Skip to content

Commit

Permalink
bulletproof test without waiting
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaut committed Dec 19, 2024
1 parent e132620 commit 3a232bc
Showing 1 changed file with 14 additions and 19 deletions.
33 changes: 14 additions & 19 deletions packages/ui/cypress/tests/default-multisigs.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,17 @@ describe('default Multisigs', () => {
watchedAccounts: [lolmcshizPubKey]
})

multisigPage.accountHeader().within(() => {
accountDisplay
.addressLabel()
.invoke('text')
.as('defaultPolkadotAddress')
.should('not.contain', polkadotSelectedMultiproxy.slice(0, 6))
})

cy.log('@defaultPolkadotAddress', cy.get('@defaultPolkadotAddress'))

// select another one
topMenuItems.desktopMenu().within(() =>
topMenuItems.desktopMenu().within(() => {
topMenuItems
.multiproxySelectorDesktop()
.multiproxySelectorInputDesktop()
.should('not.have.value', '')
.click()
.type(`${polkadotSelectedMultiproxy.slice(0, 6)}{downArrow}{enter}`, { timeout: 6000 })
)
.type(`${polkadotSelectedMultiproxy.slice(0, 6)}{downArrow}{enter}`, {
delay: 100,
timeout: 6000
})
})

// verify that it's displayed
multisigPage.accountHeader().within(() => {
Expand All @@ -46,18 +40,19 @@ describe('default Multisigs', () => {
accountDisplay
.addressLabel()
.invoke('text')
.as('defaultKusamaAddress')
.should('not.contain', kusamaSelectedMultiproxy.slice(0, 6))
})

cy.log('@defaultKusamaAddress', cy.get('@defaultKusamaAddress'))

// select another one
topMenuItems.desktopMenu().within(() =>
topMenuItems
.multiproxySelectorDesktop()
.multiproxySelectorInputDesktop()
.should('not.have.value', '')
.click()
.type(`${kusamaSelectedMultiproxy.slice(0, 6)}{downArrow}{enter}`, { timeout: 6000 })
.type(`${kusamaSelectedMultiproxy.slice(0, 6)}{downArrow}{enter}`, {
delay: 100,
timeout: 6000
})
)

// verify that it's displayed
Expand Down

0 comments on commit 3a232bc

Please sign in to comment.