From ba07c28cf361d3f3f6cdffa298787dcd1a7614b0 Mon Sep 17 00:00:00 2001 From: Jorge Padilla Date: Thu, 22 Jun 2023 01:03:30 +0900 Subject: [PATCH] fix(frontend): fix test definition e2e test (#2771) --- web/cypress/e2e/TraceDetails/ShowTestDetails.spec.ts | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/web/cypress/e2e/TraceDetails/ShowTestDetails.spec.ts b/web/cypress/e2e/TraceDetails/ShowTestDetails.spec.ts index 48f5b70776..3cbc98983a 100644 --- a/web/cypress/e2e/TraceDetails/ShowTestDetails.spec.ts +++ b/web/cypress/e2e/TraceDetails/ShowTestDetails.spec.ts @@ -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'); }); });