mirror of
https://github.com/rjNemo/devbook_ts
synced 2026-06-12 13:36:43 +00:00
verify all routes are accessible
This commit is contained in:
parent
df44070311
commit
d5b4acf525
2 changed files with 16 additions and 0 deletions
12
cypress/integration/router.spec.js
Normal file
12
cypress/integration/router.spec.js
Normal 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');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
@ -1,2 +1,6 @@
|
||||||
|
/**
|
||||||
|
* Register all routes here for easy future modification.
|
||||||
|
* Paths must start with '/'
|
||||||
|
*/
|
||||||
export const LANDING: string = '/';
|
export const LANDING: string = '/';
|
||||||
export const SIGN_UP: string = '/signup';
|
export const SIGN_UP: string = '/signup';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue