From d0cc64773d75b8f247ce13a51ff3bc6bc43a3dc3 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Sat, 4 May 2024 09:22:02 +0000 Subject: [PATCH] fix: PW tests for webhook --- tests/playwright/pages/Dashboard/WebhookForm/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/playwright/pages/Dashboard/WebhookForm/index.ts b/tests/playwright/pages/Dashboard/WebhookForm/index.ts index d94a4b524d..4d4a530347 100644 --- a/tests/playwright/pages/Dashboard/WebhookForm/index.ts +++ b/tests/playwright/pages/Dashboard/WebhookForm/index.ts @@ -70,7 +70,7 @@ export class WebhookFormPage extends BasePage { await this.get().locator(`.nc-check-box-hook-condition`).click(); const modal = this.get().locator(`.menu-filter-dropdown`).last(); - await modal.locator(`button:has-text("Add Filter")`).click(); + await modal.locator(`button:has-text("Add Filter")`).first().click(); await modal.locator('.nc-filter-field-select').waitFor({ state: 'visible', timeout: 4000 }); await modal.locator('.nc-filter-field-select').click();