verify all routes are accessible

This commit is contained in:
Ruidy Nemausat 2020-05-12 11:49:16 +02:00
parent df44070311
commit d5b4acf525
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,12 @@
import * as ROUTES from '../../src/constants/routes';
describe('App Router', () => {
it('contains Landing page', () => {
cy.visit(ROUTES.LANDING);
cy.get('section');
});
it('contains SignUp page', () => {
cy.visit(ROUTES.SIGN_UP);
cy.get('section');
});
});

View file

@ -1,2 +1,6 @@
/**
* Register all routes here for easy future modification.
* Paths must start with '/'
*/
export const LANDING: string = '/';
export const SIGN_UP: string = '/signup';