Browse Source

fix: playwright locator issue

pull/7202/head
Ramesh Mane 11 months ago committed by mertmit
parent
commit
514d6fd11f
  1. 2
      tests/playwright/pages/WorkspacePage/CollaborationPage.ts

2
tests/playwright/pages/WorkspacePage/CollaborationPage.ts

@ -39,7 +39,7 @@ export class CollaborationPage extends BasePage {
await this.rootPage.keyboard.press('Enter'); await this.rootPage.keyboard.press('Enter');
// role // role
await this.selector_role.click(); await this.selector_role.first().click();
const menu = this.rootPage.locator('.nc-role-select-dropdown:visible'); const menu = this.rootPage.locator('.nc-role-select-dropdown:visible');
await menu.locator(`.nc-role-select-workspace-level-${role.toLowerCase()}:visible`).first().click(); await menu.locator(`.nc-role-select-workspace-level-${role.toLowerCase()}:visible`).first().click();

Loading…
Cancel
Save