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:
parent
22018cc341
commit
80b1f6cab3
|
|
@ -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')
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue