diff --git a/cypress/e2e/smoke/balances.cy.js b/cypress/e2e/smoke/balances.cy.js index 617d8a3533..e1ab6490a6 100644 --- a/cypress/e2e/smoke/balances.cy.js +++ b/cypress/e2e/smoke/balances.cy.js @@ -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