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