test: wait for tab to render

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
This commit is contained in:
Raju Udava
2022-09-28 12:50:42 +05:30
committed by braks
parent 1a8417cb18
commit b42ea2d25f

View File

@@ -240,7 +240,13 @@ export const genTest = (apiType, dbType) => {
}
// 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");
// first instance of updating local storage information