mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-03-11 17:48:44 -05:00
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:
@@ -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')
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user