Browse Source

test(cypress): re-align based on role-configuration UI changes

Signed-off-by: Raju Udava <sivadstala@gmail.com>
pull/805/head
Raju Udava 3 years ago
parent
commit
3a28082a6f
  1. 7
      scripts/cypress/support/page_objects/mainPage.js

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

@ -90,11 +90,7 @@ export class _mainPage {
cy.get('label:contains("Select User roles")').click() cy.get('label:contains("Select User roles")').click()
// opt-in requested role & submit // opt-in requested role & submit
// note that, 'editor' is set by default
//
cy.getActiveMenu().contains(roleType).click() cy.getActiveMenu().contains(roleType).click()
cy.getActiveMenu().contains('editor').click()
cy.get('.mdi-menu-down').last().click()
cy.get('.nc-invite-or-save-btn').click() cy.get('.nc-invite-or-save-btn').click()
// get URL, invoke // get URL, invoke
@ -129,11 +125,8 @@ export class _mainPage {
cy.get('label:contains(Select User roles)').click() cy.get('label:contains(Select User roles)').click()
// opt-in requested role & submit // opt-in requested role & submit
// note that, 'editor' is set by default
// //
cy.getActiveMenu().contains(role).click() cy.getActiveMenu().contains(role).click()
cy.getActiveMenu().contains('editor').click()
cy.get('.mdi-menu-down').click()
cy.get('.nc-invite-or-save-btn').click() cy.get('.nc-invite-or-save-btn').click()
cy.wait(1000) cy.wait(1000)

Loading…
Cancel
Save