Skip to content

Commit

Permalink
E2E indicated with comments
Browse files Browse the repository at this point in the history
  • Loading branch information
marcopod committed Jun 15, 2024
1 parent 854a492 commit 6c4c5d9
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 39 deletions.
1 change: 1 addition & 0 deletions cypress/e2e/auth/credentialsSignIn.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ describe('Login Component', () => {
cy.get('.flex.items-center.justify-center.h-screen.w-screen').should('be.visible');
});

// E2E
it('should allow users to enter email and password', () => {
cy.get('input[type="email"]').type('[email protected]');
cy.get('input[type="password"]').type('password123');
Expand Down
10 changes: 0 additions & 10 deletions cypress/e2e/auth/login.cy.ts

This file was deleted.

28 changes: 0 additions & 28 deletions cypress/e2e/cv/editworkexperience.cy.ts

This file was deleted.

1 change: 1 addition & 0 deletions cypress/e2e/cv/education.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ describe('Education Editor Form Test', () => {
});
});

// E2E
it('Updates the Education Section', () => {
cy.get('ul.steps').find('button').contains('Education').click();
cy.get('button').contains('Add New Education').click();
Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/cv/generalInfo.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ describe('General Information Test', () => {
cy.contains('General Info').should('exist');
});

// E2E
it('loads the correct initial values', () => {
cy.visit('http://localhost:3000/editor');
// Asegurar que los campos se carguen con los valores esperados provenientes de la BD
Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/cv/projects.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ describe('Education Editor Form Test', () => {
cy.contains('Projects').should('exist');
});

// E2E
it ('Updated Projects Section', () => {
cy.get('ul.steps').find('button').contains('Projects').click();
cy.get('button').contains('Add New Project').click();
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/cv/skills.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ describe('Work Experience Editor Form Test', () => {
cy.contains('Skills').should('exist');
});

// E2E
it('Updates Skills section', () => {
cy.get('ul.steps').find('button').contains('Skills').click();
cy.get('button').contains('Add Skill').click();
Expand All @@ -31,7 +32,6 @@ describe('Work Experience Editor Form Test', () => {
cy.contains('Basic').should('be.visible');
});


it('Validates Skills Form Fields', () => {
cy.get('ul.steps').find('button').contains('Skills').click();
cy.get('button').contains('Add Skill').click();
Expand Down
1 change: 1 addition & 0 deletions cypress/e2e/cv/workexperience.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ describe('Work Experience Editor Form Test', () => {
});
});

// E2E
it ('Updates work experience section', () => {
cy.get('ul.steps').find('button').contains('Work Experience').click();
cy.get('button').contains('Add New Work Experience').click();
Expand Down

0 comments on commit 6c4c5d9

Please sign in to comment.