From 3299f3afadfd88f14d44ce6c8302e228406e4c05 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Thu, 19 Jan 2023 17:17:01 +0530 Subject: [PATCH] test: fix for multiple edit modals open at same time Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- tests/playwright/pages/Dashboard/Grid/Column/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/playwright/pages/Dashboard/Grid/Column/index.ts b/tests/playwright/pages/Dashboard/Grid/Column/index.ts index cf3772e4ad..483e6945a3 100644 --- a/tests/playwright/pages/Dashboard/Grid/Column/index.ts +++ b/tests/playwright/pages/Dashboard/Grid/Column/index.ts @@ -269,7 +269,7 @@ export class ColumnPageObject extends BasePage { timeFormat?: string; }) { await this.getColumnHeader(title).locator('.nc-ui-dt-dropdown').click(); - await this.rootPage.locator('li[role="menuitem"]:has-text("Edit")').click(); + await this.rootPage.locator('li[role="menuitem"]:has-text("Edit")').last().click(); await this.get().waitFor({ state: 'visible' });