mirror of
https://github.com/rjNemo/devbook_ts
synced 2026-06-06 02:36:39 +00:00
* connect Dashboard to store * delete account button logs out... * buttons routing functional * refactor enhance to store * use an enum for routes and statuses * add statuses enum and enable EditProfile Form * conditional display of social links * Links type, * display alert on EditProfile form submit * refactor extract alert interface * update useForm hook to handle checkboxes * enable add education form * enable add experience form * add blank dev Profile on signup * enable delete credential button * delete account set profile to inactive * add isActive field to dev, checks for user existance on sign up to not overwrite inactive profiles
58 lines
1.2 KiB
JavaScript
58 lines
1.2 KiB
JavaScript
import 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');
|
|
});
|
|
});
|