Skip to content

test(e2e): drop redundant expandLineageSection double-call test - #31071

Merged
ShaileshParmar11 merged 1 commit into
2.0from
fix/regression-test-assert-expanded
Aug 6, 2026
Merged

ShaileshParmar11 merged 1 commit into
2.0from
fix/regression-test-assert-expanded

Conversation

@ShaileshParmar11

@ShaileshParmar11 ShaileshParmar11 commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

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/expand already covers this accordion through the same helper — it asserts the section starts collapsed, expands it via expandLineageSection, and collapses it 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

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 expandLineageSection remains — 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:

Test Before AUT PG 2.0 AUT MySQL 2.0
InputOutputPorts › Toggle fullscreen mode flaky 16/16 ✅ first attempt ✅ first attempt
NavigationBlocker › should not show navigation blocker after saving changes flaky 16/16 ✅ first attempt ✅ first attempt

Runs 31060529978 (PG) and 31060526260 (MySQL).

Verification

Section 7: Fullscreen Mode — 4/4 passing after removal.

🤖 Generated with Claude Code

@ShaileshParmar11
ShaileshParmar11 requested a review from a team as a code owner August 6, 2026 03:34
@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 safe to test Add this label to run secure Github workflows on PRs UI UI specific issues labels Aug 6, 2026
@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

❌ UI Checkstyle Failed

❌ Antd + Less Deprecation Guard

A new antd import or new .less file was added. Use UntitledUI + Tailwind for new work.

Affected files

at Function._resolveFilename (node:internal/modules/cjs/loader:1401:15)
at defaultResolveImpl (node:internal/modules/cjs/loader:1057:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1062:22)
at Function._load (node:internal/modules/cjs/loader:1211:37)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5)
at node:internal/main/run_main_module:36:49 {


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]>
@ShaileshParmar11
ShaileshParmar11 force-pushed the fix/regression-test-assert-expanded branch from d9aa29d to edb0408 Compare August 6, 2026 04:05
@ShaileshParmar11 ShaileshParmar11 changed the title test(e2e): assert accordion state, not rendered graph, in expand regression test test(e2e): drop redundant expandLineageSection double-call test Aug 6, 2026
@ShaileshParmar11
ShaileshParmar11 merged commit e223485 into 2.0 Aug 6, 2026
59 of 61 checks passed
@ShaileshParmar11
ShaileshParmar11 deleted the fix/regression-test-assert-expanded branch August 6, 2026 04:07
@gitar-bot

gitar-bot Bot commented Aug 6, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

Updates 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.

Options

Display: compact → Showing less information.

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

Compact
gitar display:verbose         

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

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.

1 participant