From 03f01c0261f10adc1bd12ad4523a891ef1a2940e Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Fri, 28 Feb 2025 10:35:44 +0100 Subject: fix(cypress): wait for toast to appear Signed-off-by: skjnldsv --- cypress/e2e/files/files.cy.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cypress/e2e/files/files.cy.ts') diff --git a/cypress/e2e/files/files.cy.ts b/cypress/e2e/files/files.cy.ts index ac82086360f..2d6475c8250 100644 --- a/cypress/e2e/files/files.cy.ts +++ b/cypress/e2e/files/files.cy.ts @@ -46,12 +46,13 @@ describe('Files', { testIsolation: true }, () => { }) }) - it('Opens an unknown file show an error', () => { + it.only('Opens an unknown file show an error', () => { cy.intercept('PROPFIND', /\/remote.php\/dav\//).as('propfind') cy.login(currentUser) 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: 10000 }).should('be.visible') }) }) -- cgit v1.2.3