Skip to content

Commit

Permalink
view insight test
Browse files Browse the repository at this point in the history
  • Loading branch information
marcopod committed Jun 14, 2024
1 parent 5d1a4b4 commit 8291d1e
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions cypress/e2e/cv/viewinsight.cy.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
describe('View CV Insight', () => {
beforeEach(() => {
cy.visit('http://localhost:3000/cv_gallery');
cy.get('input[type="email"]').type('[email protected]');
cy.get('input[type=password]').type('123');
cy.get('form').submit();
});

it('displays CVs and shows the dropdown for a selected CV', () => {
cy.get('.existing-cv').should('have.length.at.least', 1);

cy.get('.existing-cv').first().within(() => {
cy.get('a').first().invoke('attr', 'href').then((href) => {
const roadmapUrl = `http://localhost:3000/${href}`;
cy.visit(roadmapUrl);
});
});
describe('View Insight', () => {
beforeEach(() => {
cy.visit('http://localhost:3000/cv_gallery');
cy.get('input[type="email"]').type('[email protected]');
cy.get('input[type=password]').type('123');
cy.get('form').submit();
});

it('opens Insight link', () => {
cy.get('.existing-cv').should('have.length.at.least', 1);

cy.get('.existing-cv').first().within(() => {
cy.get('a').first().click(); // Click on the link to open the CV
});

});

export {};


});

export {};

0 comments on commit 8291d1e

Please sign in to comment.