test: cy wait cleanup

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
This commit is contained in:
Raju Udava
2022-09-25 08:23:11 +05:30
parent 248f01bef6
commit 9b1d2c8fbd
12 changed files with 48 additions and 32 deletions

View File

@@ -114,7 +114,8 @@ export class _projectsPage {
// close team & auth tab
cy.get("button.ant-tabs-tab-remove").should("exist").click();
cy.wait(1000);
cy.get("button.ant-tabs-tab-remove").should("not.exist");
// cy.wait(1000);
}
// Open existing project
@@ -155,6 +156,8 @@ export class _projectsPage {
cy.get(".nc-metadb-project-name").should("exist");
cy.contains("button", "Create").should("exist");
// fix me! wait till the modal rendering (input highlight) is completed
// focus shifts back to the input field to select text after the dropdown is rendered
cy.wait(1000);
// feed project name
@@ -185,7 +188,8 @@ export class _projectsPage {
cy.get(".nc-extdb-proj-name").should("exist");
cy.get(".nc-extdb-btn-test-connection").should("exist");
// CY goes too fast at times, so wait for the page to load
// fix me! wait till the modal rendering (input highlight) is completed
// focus shifts back to the input field to select text after the dropdown is rendered
cy.wait(1000);
cy.get(".nc-extdb-proj-name").clear().type(projectName);
@@ -208,7 +212,7 @@ export class _projectsPage {
// Create project
cy.contains("Ok & Save Project", { timeout: 20000 }).click();
cy.wait(5000);
// cy.wait(5000);
// takes a while to load project
this.waitHomePageLoad();