Browse Source

fix(cypress): Added waiting to closing Auth tab

pull/3801/head
Muhammed Mustafa 2 years ago committed by braks
parent
commit
e600c47ed6
  1. 3
      scripts/cypress/integration/common/00_pre_configurations.js
  2. 4
      scripts/cypress/support/page_objects/navigation.js

3
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

4
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");
}

Loading…
Cancel
Save