From b9506c31c050d8c36965197782b5eea1d02e656b Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Tue, 6 Sep 2022 10:47:45 +0530 Subject: [PATCH] fix: CY tab closure handling Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- scripts/cypress/support/commands.js | 2 ++ 1 file changed, 2 insertions(+) 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(); });