diff --git a/scripts/cypress/integration/common/00_pre_configurations.js b/scripts/cypress/integration/common/00_pre_configurations.js index a44270d816..847b2a43d7 100644 --- a/scripts/cypress/integration/common/00_pre_configurations.js +++ b/scripts/cypress/integration/common/00_pre_configurations.js @@ -239,8 +239,9 @@ export const genTest = (apiType, dbType) => { cy_createProjectBlock(proj, apiType, dbType); } + cy.wait(2000); // close team & auth tab - cy.get("button.ant-tabs-tab-remove").should("exist").click(); + cy.get("button.ant-tabs-tab-remove").should("be.visible").click(); cy.get("button.ant-tabs-tab-remove").should("not.exist"); // first instance of updating local storage information diff --git a/scripts/cypress/support/page_objects/navigation.js b/scripts/cypress/support/page_objects/navigation.js index 050c7aaef8..84dcb25ee8 100644 --- a/scripts/cypress/support/page_objects/navigation.js +++ b/scripts/cypress/support/page_objects/navigation.js @@ -107,8 +107,10 @@ export class _projectsPage { cy.wait("@waitForPageLoad"); + cy.wait(2000); + // close team & auth tab - cy.get("button.ant-tabs-tab-remove").should("exist").click(); + cy.get("button.ant-tabs-tab-remove").should("be.visible").click(); cy.get("button.ant-tabs-tab-remove").should("not.exist"); }