fix(views): redirect to project after authenticating with a link share
This commit is contained in:
parent
fee75e55a3
commit
d7b40f393e
@ -6,7 +6,7 @@ import {UserFactory} from '../../factories/user'
|
|||||||
import {ProjectFactory} from '../../factories/project'
|
import {ProjectFactory} from '../../factories/project'
|
||||||
import {prepareProjects} from './prepareProjects'
|
import {prepareProjects} from './prepareProjects'
|
||||||
|
|
||||||
describe('Project View Project', () => {
|
describe('Project View List', () => {
|
||||||
createFakeUserAndLogin()
|
createFakeUserAndLogin()
|
||||||
prepareProjects()
|
prepareProjects()
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ describe('Link shares', () => {
|
|||||||
cy.get('.tasks')
|
cy.get('.tasks')
|
||||||
.should('contain', tasks[0].title)
|
.should('contain', tasks[0].title)
|
||||||
|
|
||||||
cy.url().should('contain', `/projects/${project.id}/list#share-auth-token=${share.hash}`)
|
cy.url().should('contain', `/projects/${project.id}/1#share-auth-token=${share.hash}`)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('Should work when directly viewing a project with share hash present', () => {
|
it('Should work when directly viewing a project with share hash present', () => {
|
||||||
|
@ -106,10 +106,9 @@ function useAuth() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return router.push({
|
return router.push({
|
||||||
name: 'project.view',
|
name: 'project.index',
|
||||||
params: {
|
params: {
|
||||||
projectId,
|
projectId,
|
||||||
viewId: route.query.view,
|
|
||||||
},
|
},
|
||||||
hash,
|
hash,
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user