2022-07-27 00:10:57 +03:00
|
|
|
describe('Redirect', () => {
|
|
|
|
it('should redirect to /vote/create-proposal when visiting /create-proposal', () => {
|
|
|
|
cy.visit('/create-proposal')
|
|
|
|
cy.url().should('match', /\/vote\/create-proposal/)
|
|
|
|
})
|
2022-12-17 00:49:23 +03:00
|
|
|
it('should redirect to /not-found when visiting nonexist url', () => {
|
2022-07-27 00:10:57 +03:00
|
|
|
cy.visit('/none-exist-url')
|
2022-12-17 00:49:23 +03:00
|
|
|
cy.url().should('match', /\/not-found/)
|
2022-07-27 00:10:57 +03:00
|
|
|
})
|
|
|
|
})
|