Repository navigation
Fixes 34156: stop NestedChildrenUpdates collapsing the row it edits - #34157
Conversation
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.
❌ 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 ✅ Approved🟢 Low risk · Two Playwright cases now confirm nested rows before toggling expansion. Fixes intermittent test failures in 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 ✅ 82 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) 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:
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
…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]>
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):locator.clickwaiting fortree-node-PII.Sensitivelocator.fillwaiting forclassification-tag-picker-searchIn 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
level2Keyto 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
mainbuild of the UI:eslint+prettierclean on the spec;yarn lint:playwright: 0 errors.🤖 Generated with Claude Code