Browse Source

chore(CY): modal class name map fix - share base

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/3597/head
Raju Udava 2 years ago
parent
commit
50eaf81b0b
  1. 2
      scripts/cypress/integration/common/6g_base_share.js
  2. 4
      scripts/cypress/support/page_objects/mainPage.js

2
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]);

4
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();

Loading…
Cancel
Save