From 80b1f6cab3ba4654560a5f03fdc53383c7f79145 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 20 May 2025 09:55:12 +0200 Subject: [PATCH] fix(test): wait for redirect In some cases (https://github.com/go-vikunja/vikunja/actions/runs/15130244134/job/42529938835) this test does not run, while it works in others without issues. I hope to fix that with the wait, even though that's more of a workaround. --- frontend/cypress/e2e/user/password-reset.spec.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/cypress/e2e/user/password-reset.spec.ts b/frontend/cypress/e2e/user/password-reset.spec.ts index 3a7e26ad8..9823b70ef 100644 --- a/frontend/cypress/e2e/user/password-reset.spec.ts +++ b/frontend/cypress/e2e/user/password-reset.spec.ts @@ -47,6 +47,7 @@ context('Password Reset', () => { it('Should redirect to login if no token is present in query param when visiting /password-reset directly', () => { cy.visit('/password-reset') cy.url().should('not.include', '/password-reset') + cy.wait(1000) // Wait for the redirect to happen - this seems to be flaky in CI cy.url().should('include', '/login') })