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.
This commit is contained in:
kolaente
2025-05-20 09:55:12 +02:00
parent 22018cc341
commit 80b1f6cab3

View File

@@ -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')
})