Skip to content

Commit

Permalink
test: e2e manually hide tokens (#1757)
Browse files Browse the repository at this point in the history
  • Loading branch information
schmanu authored Mar 10, 2023
1 parent f5d9fd5 commit 15d6bb9
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions cypress/e2e/smoke/balances.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,29 @@ describe('Assets > Coins', () => {
})
})

describe('tokens can be manually hidden', () => {
it('hide single token', () => {
// Click hide Dai
cy.contains('Dai').parents('tr').find('button[aria-label="Hide asset"]').click()
// time to hide the asset
cy.wait(350)
cy.contains('Dai').should('not.exist')
})

it('unhide hidden token', () => {
// Open hide token menu
cy.contains('1 hidden token').click()
// uncheck dai token
cy.contains('Dai').parents('tr').find('input[type="checkbox"]').click()
// apply changes
cy.contains('Save').click()
// Dai token is visible again
cy.contains('Dai')
// The menu button shows "Hide tokens" label again
cy.contains('Hide tokens')
})
})

describe.skip('pagination should work', () => {
before(() => {
// Open the Safe used for testing pagination
Expand Down

0 comments on commit 15d6bb9

Please sign in to comment.