11 lines
358 B
TypeScript
11 lines
358 B
TypeScript
|
describe('Redirect', () => {
|
||
|
it('should redirect to /vote/create-proposal when visiting /create-proposal', () => {
|
||
|
cy.visit('/create-proposal')
|
||
|
cy.url().should('match', /\/vote\/create-proposal/)
|
||
|
})
|
||
|
it('should redirect to /swap when visiting nonexist url', () => {
|
||
|
cy.visit('/none-exist-url')
|
||
|
cy.url().should('match', /\/swap/)
|
||
|
})
|
||
|
})
|