Skip to content

Commit

Permalink
works on my machine :(
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaut committed Jan 17, 2025
1 parent ff2434c commit 7aeeb6e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/ui/cypress/tests/watched-accounts.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,21 @@ import { knownMultisigs } from '../fixtures/knownMultisigs'
import { getShortAddress } from '../utils/getShortAddress'

const addWatchAccount = (address: string, name?: string) => {
settingsPage.accountAddressInput().type(`${address}{enter}`, { delay: 20, timeout: 6000 })
settingsPage.accountAddressInput().type(`${address}{enter}`, { delay: 20, timeout: 8000 })

if (name) {
settingsPage.accountNameInput().type(name)
}

settingsPage.addButton().should('be.enabled')
settingsPage.addButton().click()
}

const { name: testAccountName, address: testAccountAddress } =
testAccounts['Multisig Member Account 1']

describe('Watched Accounts', () => {
it('can add an account to the watch list', () => {
it('can add an account with a name to the watch list', () => {
cy.visit(landingPageUrl)
landingPage.watchAccountButton().click()
addWatchAccount(testAccountAddress, testAccountName)
Expand All @@ -39,7 +40,7 @@ describe('Watched Accounts', () => {
})
})

it('can remove an account from the watch list', () => {
it('can add without a name, and remove an account from the watch list', () => {
// add an account first
cy.visit(getSettingsPageWatchAccountUrl())
addWatchAccount(testAccountAddress)
Expand Down

0 comments on commit 7aeeb6e

Please sign in to comment.