Skip to content

Fixes 34156: stop NestedChildrenUpdates collapsing the row it edits - #34157

Merged
harsh-vador merged 1 commit into
mainfrom
fix/playwright-nested-children-tags
Sep 28, 2026
Merged

harsh-vador merged 1 commit into
mainfrom
fix/playwright-nested-children-tags

Conversation

@harsh-vador

Copy link
Copy Markdown
Contributor

Fixes #34156

Problem

NestedChildrenUpdates.spec.ts › Topic › Level 1 Nested Columns › should add and remove tags to nested column immediately without refresh fails intermittently on CI, on both attempts (example run):

  • attempt 1: locator.click waiting for tree-node-PII.Sensitive
  • retry: locator.fill waiting for classification-tag-picker-search

In both, the tag picker opens and then closes before the test can use it.

Root cause

The test calls expandNestedColumn(page, level1Key) without a child key. The helper's check-click-confirm needs the child row to know whether the row is already expanded; without it, it always clicks the expand icon.

Topic expands its whole schema by default, so that click collapses the level-1 row. The CI trace shows the table going from 7 rows to 5 at the click, 400ms before the test opens the tag picker on that row. The table re-renders under the open picker and it closes. Whether the click collapses depends on whether the auto-expand has applied yet, which is why it only fails sometimes, and only for Topic (the other entity types start with level 1 collapsed).

The displayName test in the same block has the same blind call.

Fix

Pass level2Key to both calls, as the Level 2 block already does. The helper then confirms against the child and skips the click when the row is already open.

Verification

  • Ran against a local stack with a main build of the UI:
    • the whole spec: every test passed except one Table test, killed mid-run by a Vite dev-server reload (a local-only artifact)
    • the Topic Level 1 tests and the Table description test, 5 repeats with 2 workers: 18/18 passed
  • eslint + prettier clean on the spec; yarn lint:playwright: 0 errors.

🤖 Generated with Claude Code

The Level 1 tag and displayName tests called expandNestedColumn without a
child key, so the helper could not tell the row was already expanded and
always clicked the expand icon. Topic expands its whole schema by default,
so that click collapsed the level-1 row just before the test opened the tag
picker on it; the table re-rendered under the open picker and it closed,
failing on the tree node click or the search fill.

Pass the level-2 key, as the Level 2 block already does, so the helper
confirms against the child and skips the click when the row is open.
@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 28, 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!

@gitar-bot

gitar-bot Bot commented Sep 28, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

🟢 Low risk · Two Playwright cases now confirm nested rows before toggling expansion.

Fixes intermittent test failures in NestedChildrenUpdates.spec.ts by passing the child key to expand helper calls, preventing unintended row collapse during tag picker operations. No issues found.

Review coverage

📋 Rules No rules evaluated

🧪 Functional validation Not enabled · Set up

🤖 Auto-approval Not enabled · Set up

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 28, 2026 •

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit d918898815c9febd34a572182f6f92ce6fa83faf in Playwright run 36429993762, attempt 1.

✅ 82 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) 45m 10s

⏱️ Max setup 3m 7s · max shard execution 10m 47s · max shard-job elapsed before upload 14m 16s · reporting 2s

🌐 174.13 requests/attempt · 1.58 app boots/UI scenario · 0.00% common-shard skew

Optimization targets still in progress:

  • Application boot ratio was 1.58 per UI scenario (133 boots / 84 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard chromium-01 82 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 self-assigned this Sep 28, 2026
@harsh-vador harsh-vador added the safe to test Add this label to run secure Github workflows on PRs label Sep 28, 2026
@harsh-vador
harsh-vador added this pull request to the merge queue Sep 28, 2026
Merged via the queue into main with commit fb58690 Sep 28, 2026
171 of 176 checks passed
@harsh-vador
harsh-vador deleted the fix/playwright-nested-children-tags branch September 28, 2026 14:49
chirag-madlani added a commit that referenced this pull request Sep 28, 2026
…SelectOption

- Remove support/fixtures/taskPermissions.ts, selectTaskStatusFilter and
  waitForAriaModalToSettle: their specs were reset to main, so nothing uses them.
- chooseSelectOption centres the control before opening (prevents the
  useCloseOnScroll dismissal instead of recovering from it) and uses a 2s option
  click so a detached option reopens quickly.
- NestedChildrenUpdates.spec.ts: take main's #34157 fix.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

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.

Flaky E2E: NestedChildrenUpdates Topic nested column tag test toggles the row it edits

3 participants