From 514d6fd11f0d108d010fed6e2a46c4ab9e8cd948 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Wed, 20 Dec 2023 15:10:05 +0530 Subject: [PATCH] fix: playwright locator issue --- tests/playwright/pages/WorkspacePage/CollaborationPage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/playwright/pages/WorkspacePage/CollaborationPage.ts b/tests/playwright/pages/WorkspacePage/CollaborationPage.ts index bb9dcd841a..49b90c03de 100644 --- a/tests/playwright/pages/WorkspacePage/CollaborationPage.ts +++ b/tests/playwright/pages/WorkspacePage/CollaborationPage.ts @@ -39,7 +39,7 @@ export class CollaborationPage extends BasePage { await this.rootPage.keyboard.press('Enter'); // role - await this.selector_role.click(); + await this.selector_role.first().click(); const menu = this.rootPage.locator('.nc-role-select-dropdown:visible'); await menu.locator(`.nc-role-select-workspace-level-${role.toLowerCase()}:visible`).first().click();