From 0844d0d5c21a105ad399b078c651b9f82d82cc8c Mon Sep 17 00:00:00 2001 From: musharaf-nocodb Date: Mon, 11 Dec 2023 18:07:11 +0530 Subject: [PATCH] fix : revert webhook testcase --- .../playwright/pages/Dashboard/WebhookForm/index.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/playwright/pages/Dashboard/WebhookForm/index.ts b/tests/playwright/pages/Dashboard/WebhookForm/index.ts index ec135abce2..33696d178a 100644 --- a/tests/playwright/pages/Dashboard/WebhookForm/index.ts +++ b/tests/playwright/pages/Dashboard/WebhookForm/index.ts @@ -154,15 +154,19 @@ export class WebhookFormPage extends BasePage { await this.rootPage.waitForTimeout(500); // kludge, as the dropdown is not visible even after scroll into view - await this.rootPage.locator('.ant-select-dropdown').hover(); - await this.rootPage.locator('.ant-select-dropdown').locator(`.ant-select-item`).last().scrollIntoViewIfNeeded(); + await this.rootPage.locator('.ant-select-dropdown:visible').hover(); + await this.rootPage + .locator('.ant-select-dropdown:visible') + .locator(`.ant-select-item`) + .last() + .scrollIntoViewIfNeeded(); await this.rootPage - .locator('.ant-select-dropdown') + .locator('.ant-select-dropdown:visible') .locator(`.ant-select-item:has-text("${key}")`) .scrollIntoViewIfNeeded(); await this.rootPage - .locator('.ant-select-dropdown') + .locator('.ant-select-dropdown:visible') .locator(`.ant-select-item:has-text("${key}")`) .click({ force: true });