aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorskjnldsv <skjnldsv@protonmail.com>2025-02-28 10:35:44 +0100
committerskjnldsv <skjnldsv@protonmail.com>2025-02-28 10:35:44 +0100
commit03f01c0261f10adc1bd12ad4523a891ef1a2940e (patch)
treefc611ac08594a22c0585d546e57c2b74c4febf4d
parent81073a79438baf7913b698a832e2df338580b14f (diff)
downloadnextcloud-server-fix/wait-for-toast.tar.gz
nextcloud-server-fix/wait-for-toast.zip
fix(cypress): wait for toast to appearfix/wait-for-toast
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
-rw-r--r--cypress/e2e/files/files.cy.ts5
1 files changed, 3 insertions, 2 deletions
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')
})
})