Repository navigation
test(e2e): drop redundant expandLineageSection double-call test - #31071
Conversation
❌ 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 |
❌ UI Checkstyle Failed❌ Antd + Less Deprecation GuardA new Affected filesat Function._resolveFilename (node:internal/modules/cjs/loader:1401:15) Fix locally (fast - only checks files changed in this branch): make ui-checkstyle-changed |
Removes the test added in #31062. Coverage is not lost: "Section 6: Collapse/Expand Behavior > Lineage section collapse/expand" already exercises this accordion through the same helper — asserting it starts collapsed, expands via expandLineageSection, and collapses again. The only thing the removed test added was calling expandLineageSection twice in a row. No call site does that: all 15 callers invoke it once, immediately after navigateToPortsTab on a freshly loaded page where the section is collapsed. It was guarding a path nothing takes. It was also a net negative for suite stability. It asserted that ports-lineage-view and toggle-fullscreen-btn were visible, both of which render only once port data resolves — so it inherited the CI-only readiness race on the asset association and was itself flaky in both AUT 2.0 nightlies on its first run: Error: expect(locator).toBeVisible() failed Locator: getByTestId('ports-lineage-view') Error: element(s) not found The helper's idempotency guard stays in place; it is three self-documenting lines and does not need an end-to-end test standing behind it. The fix that mattered is validated directly by the previously flaky tests going green: "Toggle fullscreen mode" and "should not show navigation blocker after saving changes" both passed on the first attempt in runs 31060529978 (PG) and 31060526260 (MySQL), after being flaky in 16 of the previous 16 runs. Co-Authored-By: Claude Opus 5 <[email protected]>
d9aa29d to
edb0408
Compare
Code Review ✅ ApprovedUpdates the end-to-end regression test to assert the accordion's aria-expanded state instead of the data-dependent rendered graph, eliminating CI flakiness. No issues found. OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar | Powered by Gitar — free for open source |
What this removes
The test
Lineage stays expanded when expandLineageSection runs twice, added in #31062.Coverage is not lost
Section 6: Collapse/Expand Behavior › Lineage section collapse/expandalready covers this accordion through the same helper — it asserts the section starts collapsed, expands it viaexpandLineageSection, and collapses it again.The only thing the removed test added was calling
expandLineageSectiontwice in a row. No call site does that: all 15 callers invoke it once, immediately afternavigateToPortsTabon a freshly loaded page where the section is collapsed. It was guarding a path nothing takes.It was also a net negative for suite stability
It asserted that
ports-lineage-viewandtoggle-fullscreen-btnwere visible — both of which render only once port data resolves. So it inherited the CI-only readiness race on the asset association and was itself flaky in both AUT 2.0 nightlies on its first run:Fixing the assertion was the alternative, but that keeps a ~30s test in the suite that guards a path no caller exercises.
The helper fix stays
The idempotency guard in
expandLineageSectionremains — three self-documenting lines that do not need an end-to-end test standing behind them.And the fix that mattered is validated directly, by the previously flaky tests going green:
InputOutputPorts › Toggle fullscreen modeNavigationBlocker › should not show navigation blocker after saving changesRuns
31060529978(PG) and31060526260(MySQL).Verification
Section 7: Fullscreen Mode— 4/4 passing after removal.🤖 Generated with Claude Code