Browse Source

test: wait for tab to render

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/3801/head
Raju Udava 2 years ago committed by braks
parent
commit
b42ea2d25f
  1. 8
      scripts/cypress/integration/common/00_pre_configurations.js

8
scripts/cypress/integration/common/00_pre_configurations.js

@ -240,7 +240,13 @@ export const genTest = (apiType, dbType) => {
} }
// close team & auth tab // close team & auth tab
cy.getSettled("button.ant-tabs-tab-remove").should("be.visible").click();
// wait for tab to be rendered completely
cy.wait(2000);
cy.getSettled("button.ant-tabs-tab-remove")
.should("be.visible")
.click();
cy.get("button.ant-tabs-tab-remove").should("not.exist"); cy.get("button.ant-tabs-tab-remove").should("not.exist");
// first instance of updating local storage information // first instance of updating local storage information

Loading…
Cancel
Save