From 80c5cf491d8c2267c6f51886216a7332c86cdb77 Mon Sep 17 00:00:00 2001 From: Aniket Katkar Date: Fri, 5 Jun 2026 15:46:51 +0530 Subject: [PATCH] fix: resolve tooltip overlap issue in entity selection by adding hover and force click to playright tests --- .../src/main/resources/ui/playwright/utils/entity.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/openmetadata-ui/src/main/resources/ui/playwright/utils/entity.ts b/openmetadata-ui/src/main/resources/ui/playwright/utils/entity.ts index 4e4ff193d7df..2023762f60d3 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/utils/entity.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/utils/entity.ts @@ -81,7 +81,16 @@ export const visitEntityPage = async (data: { response.url().includes('exclude_source_fields') ); - await page.getByTestId(dataTestId).getByTestId('data-name').click(); + // Adding a failsafe for the operation below to avoid a tooltip overlap issue + // over the option is causing playwright failure + // 1. To first hover over the option to move mouse away from tooltip trigger element + // 2. In case the tooltip is still there, force click on the option-. + await page.getByTestId(dataTestId).getByTestId('data-name').hover(); + await page + .getByTestId(dataTestId) + .getByTestId('data-name') + // eslint-disable-next-line playwright/no-force-option + .click({ force: true }); await waitForAllLoadersToDisappear(page); await page.getByTestId('searchBox').clear(); };