Chore(UI): Playwright test util improvement#26769
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates Playwright Explore-page test utilities to reduce flakiness by allowing callers to specify an Explore left-panel tab to select before continuing entity selection.
Changes:
- Extended
navigateToExploreAndSelectEntityto accept an optionalexploreTabparameter and pass it through. - Extended
openEntitySummaryPanelto optionally click a specified Explore left-panel tab after executing a search.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| openmetadata-ui/src/main/resources/ui/playwright/utils/explore.ts | Adds an optional exploreTab parameter to the high-level Explore navigation helper. |
| openmetadata-ui/src/main/resources/ui/playwright/utils/entityPanel.ts | Implements Explore left-panel tab selection inside the entity summary panel opening helper. |
Code Review ✅ ApprovedPlaywright test utility improvements add tab selection logic during text searches to eliminate flakiness. No issues found. OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
|
🟡 Playwright Results — all passed (22 flaky)✅ 3409 passed · ❌ 0 failed · 🟡 22 flaky · ⏭️ 209 skipped
🟡 22 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
* Add tab selection logic while searching by text to avoid flakiness * Worked on comments



I worked on adding a tab selection logic while searching by text to avoid flakiness
Summary by Gitar
navigateToExploreAndSelectEntityandopenEntitySummaryPanelfrom positional to object parameters for improved clarityExplorePageRightPanel.spec.tsto use new object-based syntaxexploreTabparameter to enable tab selection logic when searching by text to reduce test flakinessThis will update automatically on new commits.