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();