mirror of
https://github.com/rjNemo/devbook_ts
synced 2026-06-06 02:36:39 +00:00
* specify layout * create components folder and Navbar * create pages folder and Landing page component * create Sign Up page component * set basic routing - install react-router-dom - create Router folder and component * add constant routes file * verify all routes are accessible * add signin page * extract header component * add developers page * extract dev profiles * extract DevSummary type * update tests * add types * lay profile top and about out * lay experience section out - install moment - define Experience interface - define TimePeriod type & method * lay education section out - define education interface * lay repos section out * add Dashboard page and test * lay dashboard top section out * [refactor] Experience.ts: change employer to company; move TimePeriod to its own file * experience credential table in dashboard * education credential table in dashboard * dashboard done * edit profile * add experience page * add education page * create Comment and Post types; PostPage * postpage * posts page * refactor
58 lines
1.2 KiB
JavaScript
58 lines
1.2 KiB
JavaScript
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');
|
|
});
|
|
|
|
it('contains SignIn page', () => {
|
|
cy.visit(ROUTES.SIGN_IN);
|
|
cy.get('section');
|
|
});
|
|
|
|
it('contains Developers page', () => {
|
|
cy.visit(ROUTES.DEVELOPERS);
|
|
cy.get('section');
|
|
});
|
|
|
|
it('contains Profile page', () => {
|
|
cy.visit(ROUTES.PROFILE);
|
|
cy.get('section');
|
|
});
|
|
|
|
it('contains Edit Profile page', () => {
|
|
cy.visit(ROUTES.EDIT_PROFILE);
|
|
cy.get('section');
|
|
});
|
|
|
|
it('contains Add Experience page', () => {
|
|
cy.visit(ROUTES.ADD_EXPERIENCE);
|
|
cy.get('section');
|
|
});
|
|
|
|
it('contains Add Education page', () => {
|
|
cy.visit(ROUTES.ADD_EDUCATION);
|
|
cy.get('section');
|
|
});
|
|
|
|
it('contains Dashboard page', () => {
|
|
cy.visit(ROUTES.DASHBOARD);
|
|
cy.get('section');
|
|
});
|
|
|
|
it('contains Post page', () => {
|
|
cy.visit(ROUTES.POST);
|
|
cy.get('section');
|
|
});
|
|
|
|
it('contains Posts page', () => {
|
|
cy.visit(ROUTES.POSTS);
|
|
cy.get('section');
|
|
});
|
|
});
|