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