From b58497d2a36fa26fb2eb247352260e0e91c95537 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cypress/e2e/files/files.cy.ts b/cypress/e2e/files/files.cy.ts index ac82086360f..efae1116d2d 100644 --- a/cypress/e2e/files/files.cy.ts +++ b/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') }) }) -- cgit v1.2.3