1
0

fix: make sure redirects to a saved view work as intended

This commit is contained in:
kolaente
2023-03-14 14:09:30 +01:00
committed by Gitea
parent 24b4576c00
commit a64c0c19e5
2 changed files with 3 additions and 1 deletions

View File

@ -35,9 +35,11 @@ describe('Projects', () => {
})
it('Should redirect to a specific project view after visited', () => {
cy.intercept(Cypress.env('API_URL') + '/projects/*/buckets*').as('loadBuckets')
cy.visit('/projects/1/kanban')
cy.url()
.should('contain', '/projects/1/kanban')
cy.wait('@loadBuckets')
cy.visit('/projects/1')
cy.url()
.should('contain', '/projects/1/kanban')