Browse Source

test/fix: wait for project tab to become available

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/1954/head
Raju Udava 3 years ago
parent
commit
d176d0e74d
  1. 2
      scripts/cypress/support/commands.js

2
scripts/cypress/support/commands.js

@ -183,7 +183,7 @@ Cypress.Commands.add("openTableTab", (tn, rc) => {
Cypress.Commands.add("closeTableTab", (tn) => { Cypress.Commands.add("closeTableTab", (tn) => {
cy.task("log", `[closeTableTab] ${tn}`); cy.task("log", `[closeTableTab] ${tn}`);
cy.get(`.project-tab`).contains(tn, { timeout: 10000 }).should("exist"); cy.get(`.project-tab`).contains(tn).should("exist");
cy.get(`[href="#table||||${tn}"]`).find("button.mdi-close").click(); cy.get(`[href="#table||||${tn}"]`).find("button.mdi-close").click();
}); });

Loading…
Cancel
Save