fix: adjust test for project view
This commit is contained in:
parent
3658cde42f
commit
3ada7b657b
|
|
@ -63,12 +63,12 @@ context('Login', () => {
|
|||
|
||||
it('Should redirect to the previous route after logging in', () => {
|
||||
const projects = ProjectFactory.create(1)
|
||||
cy.visit(`/projects/${projects[0].id}/list`)
|
||||
cy.visit(`/projects/${projects[0].id}/1`)
|
||||
|
||||
cy.url().should('include', '/login')
|
||||
|
||||
login()
|
||||
|
||||
cy.url().should('include', `/projects/${projects[0].id}/list`)
|
||||
cy.url().should('include', `/projects/${projects[0].id}/1`)
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue