diff --git a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/AuditLogs.spec.ts b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/AuditLogs.spec.ts index 21522e61f1d3..9aa95e449459 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/AuditLogs.spec.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/AuditLogs.spec.ts @@ -284,7 +284,8 @@ test.describe('Audit Logs Page', PLAYWRIGHT_BASIC_TEST_TAG_OBJ, () => { const userSearchResponse = page.waitForResponse( (response) => response.url().includes('/api/v1/search/query') && - response.url().includes('index=user') + response.url().includes('index=user') && + response.url().includes('q=admin') ); await searchInput.fill('admin'); await userSearchResponse; 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..0e48f8e9a0dd 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. + // A tooltip over the option can cause Playwright click failures: + // 1) Hover over the option to move the mouse away from the tooltip trigger element. + // 2) If the tooltip is still present, force-click 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(); };