fix(cypress): wait for toast to appear

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
pull/51126/head
skjnldsv 1 year ago
parent 81073a7943
commit 07cfc843f0
  1. 3
      cypress/e2e/files/files.cy.ts

@ -52,6 +52,7 @@ describe('Files', { testIsolation: true }, () => {
cy.visit('/apps/files/files/123456')
cy.wait('@propfind')
cy.contains('The file could not be found').should('be.visible')
// The toast should be visible
cy.contains('The file could not be found', { timeout: 5000 }).should('be.visible')
})
})

Loading…
Cancel
Save