Browse Source

test: use class names during invite user

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/3807/head
Raju Udava 2 years ago
parent
commit
43fc94a363
  1. 12
      scripts/cypress/support/page_objects/mainPage.js

12
scripts/cypress/support/page_objects/mainPage.js

@ -119,7 +119,9 @@ export class _mainPage {
); );
// click on New User button, feed details // click on New User button, feed details
cy.get("button.nc-invite-team").click(); cy.getActiveModal(".nc-modal-settings")
.find("button.nc-invite-team")
.click();
// additional wait to ensure the modal is fully loaded // additional wait to ensure the modal is fully loaded
cy.getActiveModal(".nc-modal-invite-user-and-share-base").should("exist"); cy.getActiveModal(".nc-modal-invite-user-and-share-base").should("exist");
@ -128,8 +130,12 @@ export class _mainPage {
.should("exist"); .should("exist");
// cy.wait(1000); // cy.wait(1000);
cy.get('input[placeholder="E-mail"]:visible').type(userCred.username); cy.getActiveModal(".nc-modal-invite-user-and-share-base")
cy.get(".ant-select.nc-user-roles").click(); .find('input[placeholder="E-mail"]')
.type(userCred.username);
cy.getActiveModal(".nc-modal-invite-user-and-share-base")
.find(".ant-select.nc-user-roles")
.click();
// opt-in requested role & submit // opt-in requested role & submit
// cy.getActiveSelection().contains(roleType).click({force: true}); // cy.getActiveSelection().contains(roleType).click({force: true});

Loading…
Cancel
Save