From 50eaf81b0bd4b143deb90ede9d95787d49097c7f Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Tue, 13 Sep 2022 21:53:27 +0530 Subject: [PATCH] chore(CY): modal class name map fix - share base Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- scripts/cypress/integration/common/6g_base_share.js | 2 +- scripts/cypress/support/page_objects/mainPage.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/cypress/integration/common/6g_base_share.js b/scripts/cypress/integration/common/6g_base_share.js index d35178d62f..2b9e41da6a 100644 --- a/scripts/cypress/integration/common/6g_base_share.js +++ b/scripts/cypress/integration/common/6g_base_share.js @@ -90,7 +90,7 @@ export const genTest = (apiType, dbType) => { .click(); // Copy URL - cy.getActiveModal(".nc-modal-invite-user-and-shared-base") + cy.getActiveModal(".nc-modal-invite-user-and-share-base") .find(".nc-url") .then(($obj) => { cy.log($obj[0]); diff --git a/scripts/cypress/support/page_objects/mainPage.js b/scripts/cypress/support/page_objects/mainPage.js index d50ccedd9b..ce21a90e7a 100644 --- a/scripts/cypress/support/page_objects/mainPage.js +++ b/scripts/cypress/support/page_objects/mainPage.js @@ -120,12 +120,12 @@ export class _mainPage { // opt-in requested role & submit // cy.getActiveSelection().contains(roleType).click({force: true}); cy.getActiveSelection().find('.nc-role-option').eq(roleIndex).should('exist').click() - cy.getActiveModal(".nc-modal-invite-user-and-shared-base").find("button.ant-btn-primary").click(); + cy.getActiveModal(".nc-modal-invite-user-and-share-base").find("button.ant-btn-primary").click(); cy.toastWait("Successfully updated the user details"); // get URL, invoke - cy.getActiveModal(".nc-modal-invite-user-and-shared-base") + cy.getActiveModal(".nc-modal-invite-user-and-share-base") .find(".ant-alert-message") .then(($obj) => { linkText = $obj.text().trim();