From 09ea176925423fc71653ef1272555cce799a4280 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Mon, 17 Jan 2022 22:25:58 +0530 Subject: [PATCH] test(cypress): suite/views align with UI changes Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- scripts/cypress/integration/common/4f_grid_view_share.js | 4 +++- scripts/cypress/support/page_objects/mainPage.js | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/cypress/integration/common/4f_grid_view_share.js b/scripts/cypress/integration/common/4f_grid_view_share.js index bf0be39041..02d36d7c25 100644 --- a/scripts/cypress/integration/common/4f_grid_view_share.js +++ b/scripts/cypress/integration/common/4f_grid_view_share.js @@ -117,7 +117,9 @@ export const genTest = (type, xcdb) => { .its("length") .should("eq", 1) .then(() => { - cy.get(".v-overlay__content > .d-flex > .v-icon").click(); + // cy.get(".v-overlay__content > .d-flex > .v-icon").click(); + // close modal (fix me! add a close button to share view list modal) + cy.get('.v-overlay--active > .v-overlay__scrim').click({force: true}); }); }); diff --git a/scripts/cypress/support/page_objects/mainPage.js b/scripts/cypress/support/page_objects/mainPage.js index 14722043e1..7fece240f3 100644 --- a/scripts/cypress/support/page_objects/mainPage.js +++ b/scripts/cypress/support/page_objects/mainPage.js @@ -357,9 +357,12 @@ export class _mainPage { } }) .then(() => { - cy.get(".v-overlay__content > .d-flex > .v-icon").click(); cy.toastWait("Deleted shared view successfully"); + // close modal + cy.get('.v-overlay--active > .v-overlay__scrim').click({force: true}); }); + + }; // download CSV & verify