diff --git a/cypress/integration/router.spec.js b/cypress/integration/router.spec.js new file mode 100644 index 0000000..216bad7 --- /dev/null +++ b/cypress/integration/router.spec.js @@ -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'); + }); +}); diff --git a/src/constants/routes.ts b/src/constants/routes.ts index e1326b7..d1f0028 100644 --- a/src/constants/routes.ts +++ b/src/constants/routes.ts @@ -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';