Skip to content

Fixes 33187: open the owner dropdown through openOwnerSelector - #33188

Merged
harsh-vador merged 1 commit into
mainfrom
fix/explore-right-panel-owner-open
Sep 11, 2026
Merged

harsh-vador merged 1 commit into
mainfrom
fix/explore-right-panel-owner-open

Conversation

@harsh-vador

Copy link
Copy Markdown
Contributor

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:

Test timeout of 60000ms exceeded.
Error: locator.waitFor: Target page, context or browser has been closed
  - waiting for locator('[data-testid="select-owner-tabs"] [role="tab"]').first() to be visible
  at PageObject/Explore/OverviewPageObject.ts:676

Root cause. verifyDeletedOwnerNotVisible opened the dropdown with a forced click:

// eslint-disable-next-line playwright/no-force-option -- element obscured by overlay
await this.editOwnersIcon.click({ force: true });
await this.selectOwnerTabsRoleTab.waitFor({ state: 'visible' });

force: true skips 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 after adminPage.reload(), while the right panel's loader is still mounted, so the click is swallowed, the popover never opens, and the unbounded waitFor beneath 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 a beforeAll that creates 11 entities in parallel — the search index is still busy, the preceding waitForDeletionFromSearchIndex poll 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 — addOwnerWithoutValidation bypassed it as well, with a plain click and the same missing loader wait.

git log -S shows 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 for force: true on this one. So this is drift, not a deliberate exception — and it removes a no-force-option suppression rather than adding one.

Net −8/+2, and all four owner-open sites now share one path.

Type of change:

  • Bug fix

High-level design:

N/A — small change.

Tests:

Use cases covered

  • Overview panel - Deleted entity verification › Should verify deleted user not visible in owner selection for 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.ts deleted-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

  1. Read the failing shard log from merge-queue run 34496835634 (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.
  2. Confirmed the failure point is the dropdown never opening, not the waitForDeletionFromSearchIndex gate added by fix(playwright): gate deleted-entity dropdown assertions on search-index consistency #31909 — that poll completes and the failure is downstream of it.
  3. Confirmed openOwnerSelector is 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 the selectOwnerTabs + selectOwnerTabsRoleTab visibility waits both call sites already had.
  4. Confirmed waitForLoadersToDisappear delegates to the shared, bounded waitForAllLoadersToDisappear(page, 'loader', timeout) — it cannot wait indefinitely.
  5. yarn lint:playwright — 0 errors (214 warnings, all pre-existing, none in the changed file).
  6. npx tsc --noEmit -p playwright/tsconfig.json — 164 errors, byte-identical to the main baseline.

UI screen recording / screenshots:

Not applicable.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.
  • For UI changes: I attached a screen recording and/or screenshots above.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.

🤖 Generated with Claude Code

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>
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This 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 skip-pr-checks label.

@github-actions github-actions Bot added the UI UI specific issues label Sep 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@harsh-vador harsh-vador self-assigned this Sep 11, 2026
@harsh-vador harsh-vador added the safe to test Add this label to run secure Github workflows on PRs label Sep 11, 2026
@gitar-bot

gitar-bot Bot commented Sep 11, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

Fixes a flaky test timeout in the owner dropdown opening by routing verifyDeletedOwnerNotVisible and addOwnerWithoutValidation through the existing openOwnerSelector() helper. The helper properly waits for loaders to disappear and asserts visibility before clicking, eliminating the race condition caused by forced clicks landing while the right panel loader was still mounted. All four owner-open call sites now share one reliable path. No issues found.

Options

Display: compact → Counting what did not apply, without listing it.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@github-actions

github-actions Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit 3afee9d1a842ca30231310794011796650f792d4 in Playwright run 34574450129, attempt 1.

✅ 341 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky

Performance

Blocking 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:

  • Application boot ratio was 1.44 per UI scenario (497 boots / 345 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard chromium-01 173 0 0 0 0 0
✅ Shard chromium-02 168 0 0 0 0 0

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

@harsh-vador
harsh-vador added this pull request to the merge queue Sep 11, 2026
Merged via the queue into main with commit 5676b22 Sep 11, 2026
173 of 175 checks passed
@harsh-vador
harsh-vador deleted the fix/explore-right-panel-owner-open branch September 11, 2026 11:12

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Playwright: ExplorePageRightPanel deleted-owner test flakes because the owner dropdown is opened with a forced click

2 participants