Skip to content

test(playwright): fix TeamsHierarchy profile-edit and nested-column tag merge-queue failures - #35925

Merged
harsh-vador merged 2 commits into
mainfrom
fix/merge-queue-teams-tree-and-nested-tag-flakes
Oct 22, 2026
Merged

harsh-vador merged 2 commits into
mainfrom
fix/merge-queue-teams-tree-and-nested-tag-flakes

Conversation

@harsh-vador

@harsh-vador harsh-vador commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes the merge-queue failures of:

  • TeamsHierarchy.spec.ts › Only Group teams are selectable in user profile teams edit
  • Table.spec.ts › expand / collapse should not appear after updating nested fields table
  • Dashboards.spec.ts › expand / collapse should not appear after updating nested fields for dashboardDataModels

None of these failures came from the PRs that were ejected. Each merge group held one unrelated PR (jetty bump, Kafka OpenLineage, search-settings colours, usageSummary, …).

1. TeamsHierarchy: the team tree covers the Cancel button

From 19:46 to 22:47 UTC on 2026-10-21, every merge group failed on this test (17 runs, both retries each). It was the most frequent failing test in the merge queue from Oct 19 to Oct 22 (21 of 48 failing runs).

  • Symptom: every click on teams-edit-close-btn fails with treegrid "Search for teams" … subtree intercepts pointer events until the 60 s timeout.
  • Cause: Migrate display, navigation, selection and numeric components to core #35253 moved the profile Edit Teams popover to the core TreeSelect:
    • The tree became its own portaled overlay.
    • The popover became a fixed tw:h-39 card. Before, a MutationObserver grew the card by the dropdown's height, so the tree pushed Cancel/Save down instead of covering them.
    • The multiple tree stays open after a pick. When it opens below the input it sits on top of Cancel/Save, and its outside-pointerdown dismissal can't fire because the pointer lands on the tree itself. It only flips above the input when there isn't enough room below, which depends on the profile layout. That is why the result followed the shard plan rather than the PR.
  • Fix: press Escape and assert the tree is hidden before clicking Cancel. This is the same step selectTeamInPicker (utils/userDetails.ts) already takes before UserDetails.spec clicks Save in the same popover.

2. Table / Dashboards nested-field tag tests: not enough time on the heaviest column pages

  • Setup: both tests add and then remove a tag on performance_test_table and big_analytics_data_model_with_nested_columns.
  • What the failing traces show:
    • About 51 rich-text (tiptap) description previews mount at once, then the screencast freezes for 7–9 s.
    • In one trace a single isVisible() took 29 s, because its reply reached the test worker 20 s after the browser answered.
    • That uses up clickUntilVisible's 30 s window for opening the tag picker (Timeout 30000ms exceeded while waiting on the predicate), or the 60 s test timeout.
  • Not a regression: neither spec has changed since Oct 14. Healthy merge-queue runs take 17–38 s with a 1–7 s picker open; the slow episodes are intermittent and land on runs carrying unrelated PRs.
  • Fix:
    • test.slow() in both tests, sized for degraded shards as the handbook's budget rules ask.
    • openClassificationTagPicker gets an optional timeout, forwarded by assignTagToChildren / removeTagsFromChildren as an opt-in pickerTimeout. Only these two tests pass LONG_ACTION_TIMEOUT; every other caller keeps the 30 s default.
pr35925-report-full

Type of change:

  • Bug fix

High-level design:

N/A — test-only fix in 4 files.

Tests:

Use cases covered

  • The profile Edit Teams popover can be cancelled after selecting a Group team, whichever side the team tree opens on.
  • The nested-column tag round-trip on the two largest sample column pages completes on a slow runner.

Unit tests

Not applicable — Playwright-only change.

Backend integration tests

  • Not applicable (no backend API changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Files updated: e2e/Features/TeamsHierarchy.spec.ts, e2e/Features/Table.spec.ts, e2e/Features/Dashboards.spec.ts, utils/entity.ts

Local runs (Vite on this branch, proxied to a local 2.0.0-SNAPSHOT server, admin in classic mode):

Run Result
TeamsHierarchy.spec.ts (Basic project), whole serial file 5 / 5 passed
Profile Edit Teams flow forced to open the tree below the input (1280×900 viewport): Cancel clicked without dismissing the tree (current behaviour) failed: treegrid … intercepts pointer events (same as CI)
Same, with this PR's Escape step passed
Table nested-fields test, --repeat-each=3 in parallel, origin/main code 3 / 3 failed: Timeout 30000ms exceeded while waiting on the predicate (same as CI)
Same, this branch 3 / 3 passed
  • Dashboards.spec.ts was not run locally: the local server has no sample_superset data. Its change has the same shape as the Table one.
  • yarn lint:playwright: 0 errors. Prettier: clean.
  • tsc --project playwright/tsconfig.json: the same 115 errors as origin/main, none in the changed files.
  • make playwright_affected lists ~260 specs because utils/entity.ts is a shared helper. I didn't run them locally. The helper change is an optional parameter that defaults to the existing behaviour.

Manual testing performed

  1. Drove the profile Edit Teams popover with a Business Unit → Division → Department → Group hierarchy and measured the tree and Cancel bounding boxes. At 720 px viewport height the tree opened above the input (y 343–493, Cancel at y 594). At 900 px it opened below (y 575–725) and covered Cancel.
  2. Worked out the failure mechanisms from the merge-queue artifacts (results JSON, blob traces, screenshots) of runs 39664498066, 39670964203, 39677549667, 39689017491, 39694057174, 39714308627 and 39719098032.

UI screen recording:

Not applicable — test-only change, no product UI change.

Product follow-up worth a ticket: a mouse user hits the same occlusion. After picking a team, Cancel/Save sit under the tree until it is dismissed.

Checklist:

  • I have read the CONTRIBUTING document.

  • My PR title is Fixes <issue-number>: <short explanation> — test fix: descriptive title, skip-pr-checks.

  • My PR is linked to a GitHub issue via Fixes #<issue-number> above — test fix, no issue.

  • I have commented on my code, particularly in hard-to-understand areas.

  • For JSON Schema changes: N/A.

  • For a UI feature or feature task: N/A — test-only.

  • I have added tests (unit / integration / Playwright as applicable) and listed them above.

  • Self-review: I reviewed the final diff against REVIEW.md; no 🔴 findings.

  • Decision check: no durable decision; no record needed.

  • I have added a test that covers the exact scenario we are fixing.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

This test-only PR appears safe to merge.

Summary

This PR adjusts Playwright tests for three merge-queue failures.

  • The profile team test closes the tree before it clicks Cancel.
  • The large Table and Dashboard tag checks get more time to finish.

No actionable issues were found. This review checked the code paths; it did not rerun the tests.

harsh-vador explicitly acknowledged the existing profile button occlusion and deferred it as a product follow-up. This PR changes the test, not the product behavior.

Reviews (1) · Last reviewed commit: "chore(playwright): auto-refresh impact-m..." · Reviewed by Greptile

…ag merge-queue failures

TeamsHierarchy "Only Group teams are selectable in user profile teams edit"
clicked Cancel while the multi-select team tree was still open. Since #35253
the tree is its own overlay over a fixed-height card, and when it opens below
the input it covers the Cancel/Save row, so every click was intercepted by the
treegrid. Dismiss the tree with Escape first, as selectTeamInPicker already does.

The Table and Dashboards "expand / collapse should not appear after updating
nested fields" tests do two tag round-trips on the two heaviest column pages.
On a busy runner the page stalls long enough to exhaust the 30s tag-picker
open retry and the 60s test budget. Give both tests test.slow() and let the
column tag helpers take an opt-in picker timeout.
@harsh-vador
harsh-vador requested a review from a team as a code owner October 22, 2026 06:20
@harsh-vador harsh-vador added the skip-pr-checks Bypass PR metadata validation check label Oct 22, 2026
@harsh-vador harsh-vador added the skip-pr-checks Bypass PR metadata validation check label Oct 22, 2026
@github-actions github-actions Bot added the UI UI specific issues label Oct 22, 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 Oct 22, 2026
@harsh-vador harsh-vador added the safe to test Add this label to run secure Github workflows on PRs label Oct 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔄 Playwright impact map auto-refreshed

This PR touched specs or UI source that changed the source→spec routing map. I regenerated .github/playwright/impact-map.generated.json and pushed the diff to this branch.

- source entries: 982 → 982
- 0 added, 0 removed, 1 changed spec-list

Entries whose spec list changed:
  openmetadata-ui/src/main/resources/ui/playwright/constant/common.ts

What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing getByTestId strings. Hand-authored routing in impact-map.json always wins on conflict.

What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit:

python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit  # or a separate commit

@gitar-bot

gitar-bot Bot commented Oct 22, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Extending Playwright picker and test timeouts could delay detection of a genuinely stalled tag picker; Escape only changes test dismissal flow.

Test-only fix for merge-queue flakes in TeamsHierarchy profile-edit and nested-column tag tests: adds an Escape step to dismiss the team tree before clicking Cancel, and extends timeouts for the heaviest column pages. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

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

@harsh-vador
harsh-vador enabled auto-merge October 22, 2026 06:22
@harsh-vador
harsh-vador added this pull request to the merge queue Oct 22, 2026
Merged via the queue into main with commit 4c67c64 Oct 22, 2026
82 checks passed
@harsh-vador
harsh-vador deleted the fix/merge-queue-teams-tree-and-nested-tag-flakes branch October 22, 2026 07:46
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 skip-pr-checks Bypass PR metadata validation check UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants