Repository navigation
Fixes 33187: open the owner dropdown through openOwnerSelector - #33188
Conversation
verifyDeletedOwnerNotVisible opened the dropdown with a forced click, suppressing no-force-option with "element obscured by overlay". force: true skips the receives-events check, which is the one that would have waited that overlay out. The call lands right after page.reload(), while the right panel loader is still mounted, so the click is swallowed, the popover never opens, and the unbounded waitFor underneath it hangs to the 60s test timeout — surfacing as "Target page, context or browser has been closed". openOwnerSelector already exists in this class and does it correctly: clear the loaders, scroll into view, assert visible and enabled, plain click, then assert both the tabs container and the role tab within a bounded 10s. Two other methods already use it. Route the remaining two through it as well — addOwnerWithoutValidation bypassed it with a plain click and the same missing loader wait. Both the helper and the forced click landed in the same PR (#30699), so this is drift rather than a deliberate exception. Side effect worth having: a dropdown that genuinely fails to open now reports a 10s assertion naming the missing element instead of a 60s timeout blamed on a closed browser. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
Code Review ✅ ApprovedFixes a flaky test timeout in the owner dropdown opening by routing OptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
✅ Playwright Results — workflow succeededValidated commit ✅ 341 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 1h 33m 20s ⏱️ Max setup 2m 55s · max shard execution 13m 4s · max shard-job elapsed before upload 16m 11s · reporting 2s 🌐 161.87 requests/attempt · 1.44 app boots/UI scenario · 10.71% common-shard skew Optimization targets still in progress:
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
Describe your changes:
Fixes #33187
ExplorePageRightPanel.spec.ts→ Overview panel - Deleted entity verification → "Should verify deleted user not visible in owner selection" flakes on PR checks and in the merge queue, timing out at 60s with a misleading error:Root cause.
verifyDeletedOwnerNotVisibleopened the dropdown with a forced click:force: trueskips every actionability check — including receives-events, which is the one that would have waited out the overlay the suppression comment names. The call lands immediately afteradminPage.reload(), while the right panel's loader is still mounted, so the click is swallowed, the popover never opens, and the unboundedwaitForbeneath it hangs for the rest of the test budget. "Target page … has been closed" is the teardown, not the cause.Why flaky and not broken. It is timing-dependent. The failing instance is consistently the first entity in the parameterized loop (
table), which runs right after abeforeAllthat creates 11 entities in parallel — the search index is still busy, the precedingwaitForDeletionFromSearchIndexpoll runs longer, and the loader is still up when the click lands. Every later entity passed in the same shard in 9–21s.The fix is a helper this class already has.
openOwnerSelector()clears the loaders, scrolls into view, asserts visible and enabled, clicks without forcing, then asserts both the tabs container and the role tab within a bounded 10s. Two other methods already call it. This routes the remaining two through it —addOwnerWithoutValidationbypassed it as well, with a plain click and the same missing loader wait.git log -Sshows the helper and the forced click landed in the same PR (#30699, "batch seven queued flaky-spec stabilizations"), which built the hardened opener for some call sites and reached forforce: trueon this one. So this is drift, not a deliberate exception — and it removes ano-force-optionsuppression rather than adding one.Net −8/+2, and all four owner-open sites now share one path.
Type of change:
High-level design:
N/A — small change.
Tests:
Use cases covered
Overview panel - Deleted entity verification › Should verify deleted user not visible in owner selectionfor all 11 parameterized entity types — the flaking test.addOwnerWithoutValidation, used by the same test and by the owner-assignment tests in this spec, now waits for the panel loader before clicking.Unit tests
Not applicable — Playwright page-object change, no app code touched.
Backend integration tests
Not applicable (no backend changes).
Ingestion integration tests
Not applicable (no ingestion changes).
Playwright (UI) tests
No new spec — this fixes how an existing page object drives the UI. The affected tests are the existing
ExplorePageRightPanel.spec.tsdeleted-entity cases.Behavioural note for review: this is strictly more waiting than before (loader wait + visible/enabled assertions), and the assertions it adds are bounded at 10s, so a dropdown that genuinely fails to open now reports which element was missing instead of a 60s timeout blamed on a closed browser.
Manual testing performed
chromium-17): 1 failed, 167 passed; the same test passed for all 10 other entity types in that shard, at 9–21s each, against a 60s budget.waitForDeletionFromSearchIndexgate added by fix(playwright): gate deleted-entity dropdown assertions on search-index consistency #31909 — that poll completes and the failure is downstream of it.openOwnerSelectoris a strict superset of both replaced sequences, so no wait is lost: it adds the loader wait,scrollIntoViewIfNeeded, and the visible/enabled assertions, and keeps theselectOwnerTabs+selectOwnerTabsRoleTabvisibility waits both call sites already had.waitForLoadersToDisappeardelegates to the shared, boundedwaitForAllLoadersToDisappear(page, 'loader', timeout)— it cannot wait indefinitely.yarn lint:playwright— 0 errors (214 warnings, all pre-existing, none in the changed file).npx tsc --noEmit -p playwright/tsconfig.json— 164 errors, byte-identical to themainbaseline.UI screen recording / screenshots:
Not applicable.
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.🤖 Generated with Claude Code