Skip to content

Commit

Permalink
fix(frontend): fix test definition e2e test (#2771)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeepc authored Jun 21, 2023
1 parent adaf2d7 commit ba07c28
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions web/cypress/e2e/TraceDetails/ShowTestDetails.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,11 @@ describe('Show test details', () => {
cy.visit(`/test/${testId}`);

cy.get('[data-cy^=result-actions-button]').first().click();
cy.get('[data-cy=view-test-definition-button]').click();
cy.get('[data-cy=automate-test-button]').click();

cy.get('[data-cy=file-viewer-code-container]').should('be.visible');
cy.get('[data-cy=file-viewer-close]').click();

cy.get('[data-cy=file-viewer-code-container]').should('not.be.visible');

cy.get(`[data-cy=test-details-run-test-button]`).click();
cy.matchTestRunPageUrl();
cy.get('[data-cy=code-block]').should('be.visible');
cy.contains('div', 'Test Definition').should('be.visible');
cy.contains('div', 'Running Techniques').should('be.visible');
});
});

Expand Down

0 comments on commit ba07c28

Please sign in to comment.