fix: resolve tooltip overlap issue in entity selection by adding hover and force click to playwright tests#28749
Open
aniketkatkar97 wants to merge 1 commit into
Open
fix: resolve tooltip overlap issue in entity selection by adding hover and force click to playwright tests#28749aniketkatkar97 wants to merge 1 commit into
aniketkatkar97 wants to merge 1 commit into
Conversation
…r and force click to playright tests
Contributor
There was a problem hiding this comment.
Pull request overview
This PR improves Playwright E2E test stability by hardening the visitEntityPage utility against UI tooltip overlays that can block click interactions (notably in entity dropdown selections).
Changes:
- Adds a hover step before clicking the entity option to reduce tooltip overlap.
- Uses a forced click (with ESLint suppression) as a fallback when the element remains obstructed.
Comment on lines
+84
to
+93
| // 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 }); |
Code Review ✅ ApprovedUpdates the entity selection test utility to include hover and force click actions, resolving test flakiness caused by tooltip overlaps. No issues found. OptionsDisplay: compact → Showing less information. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
Contributor
|
Contributor
🔴 Playwright Results — 1 failure(s), 12 flaky✅ 4269 passed · ❌ 1 failed · 🟡 12 flaky · ⏭️ 88 skipped
Genuine Failures (failed on all attempts)❌
|
chirag-madlani
approved these changes
Jun 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Fixes #28750
This pull request introduces a small but important improvement to the Playwright test utility for visiting entity pages. The change addresses a UI automation issue where tooltips can interfere with clicking on options, causing test failures.
The failure was frequently observed in ServiceIngestion.spec.ts runs where the option was at the bottom of the dropdown, and the table header sort tooltip was overlapping the option, causing the click operation to fail.
entity.ts, updated the click action on the entity name to first hover over the element and then perform a forced click. This approach helps avoid failures caused by tooltip overlaps interfering with Playwright's ability to click the option.