From bda306433d5e19c9a769b8b5abcecda48b11819d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 24 Oct 2022 14:36:04 -0300 Subject: [PATCH] [Backport 4.4-2.3-wzd] Fix problems in the integration of Cypress and GitHub Actions (#4755) Fix problems in the integration of Cypress and GitHub Actions (#4747) * Editing before * Checking erros * Checking erros (cherry picked from commit e74e5ef2ed01ac93a6657bff077e5881db0620cc) Co-authored-by: Mayons95 <104914131+Mayons95@users.noreply.github.com> --- test/cypress/cypress/support/index.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/test/cypress/cypress/support/index.js b/test/cypress/cypress/support/index.js index 7fc35411ba..78f10d2c17 100644 --- a/test/cypress/cypress/support/index.js +++ b/test/cypress/cypress/support/index.js @@ -49,8 +49,7 @@ before(() => { login ? login() : cy.log(`Error! loginMethod: "${loginMethod}" is not recognized`); if (Cypress.env('type') != 'odfe') { - cy.get('react-component[name="StatsOverview"]', { timeout: 15000 }) - cy.get('react-component[name="OverviewWelcome"]', { timeout: 15000 }) + cy.wait(15000); validateURLIncludes(OVERVIEW_URL); } else { @@ -75,11 +74,6 @@ beforeEach(() => { }); }) cy.setSessionStorage('healthCheck', 'executed'); - - if (Cypress.env('type') == 'wzd') { navigate("/"); - cy.get('nav #selectAPIBar').select('mock'); } - - -}) + ) \ No newline at end of file