diff --git a/scripts/cypress/support/commands.js b/scripts/cypress/support/commands.js index b67c3f3a5d..8caa7ee8d8 100644 --- a/scripts/cypress/support/commands.js +++ b/scripts/cypress/support/commands.js @@ -182,6 +182,7 @@ Cypress.Commands.add("closeTableTab", (tn) => { .should('exist') .parent() .parent() + .parent() .find('button') .click(); @@ -412,6 +413,7 @@ Cypress.Commands.add("closeViewsTab", (vn) => { .should('exist') .parent() .parent() + .parent() .find('button') .click(); });