Skip to content

Commit

Permalink
add cy.clock and cy.tick
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaut committed Oct 12, 2023
1 parent fa06d73 commit fd43632
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/ui/cypress/tests/watched-accounts.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ describe('Watched Accounts', () => {
})
})

it('can edit the name of a watched pure', () => {
it.only('can edit the name of a watched pure', () => {
cy.visit(settingsPageWatchAccountUrl)
addWatchAccount(
watchMultisigs['multisig-with-pure'].pureAddress,
Expand All @@ -139,8 +139,10 @@ describe('Watched Accounts', () => {
multisigPage.optionsMenuButton().click()
multisigPage.editNamesMenuOption().click()
editNamesModal.body().should('be.visible')
cy.clock()
editNamesModal.inputEditPureName().type(`{selectall}{del}${`Edited Name Test`}`)
cy.wait(500)
cy.tick(300)
// cy.wait(350)
editNamesModal.saveButton().should('be.enabled').click()
// ensure the edited name is now displayed in the home page header
multisigPage.accountHeader().within(() => {
Expand Down

0 comments on commit fd43632

Please sign in to comment.