Skip to content

test(e2e): repair 45 stale Playwright tests against current UI - #9

Merged
jamesaphoenix merged 2 commits into
jamesaphoenix:mainfrom
jakob1379:fix/e2e-suite
Aug 27, 2026
Merged

test(e2e): repair 45 stale Playwright tests against current UI#9
jamesaphoenix merged 2 commits into
jamesaphoenix:mainfrom
jakob1379:fix/e2e-suite

Conversation

@jakob1379

Copy link
Copy Markdown
Contributor

Summary

The Playwright suite rotted as the UI evolved: the comment strip below the diff was dead-coded in favor of the right-panel comments tab, the collapsible edges section became an annotation subtab, the flow graph moved behind the Graph subtab, file clicks now open tabs without selecting groups, the source explorer became outline-only, and a second branch dropdown broke strict-mode locators.

  • Rewrote tests to cover the equivalent behavior in the current UI
  • Deleted vacuous if (isVisible()) tests, stale screenshot tests for removed features, and duplicates (plus their orphaned pngs)
  • Refreshed docs/screenshots/*.png baselines
  • No app-code changes

The second commit applies fixes from a three-reviewer pass (rule-checklist, over-engineering, and senior review): made remaining vacuous assertions real (mount the graph before asserting absence of export buttons/minimap), dropped dead sleeps subsumed by Playwright's auto-retrying assertions, and scoped two strict-mode-fragile locators.

Test plan

Full suite on this branch rebased onto main:

204 passed, 2 skipped, 0 failed (3.3m)

The suite rotted as the UI evolved: comment strip below the diff was
dead-coded in favor of the right-panel comments tab, the collapsible
edges section became an annotation subtab, the flow graph moved behind
the Graph subtab, file clicks now open tabs without selecting groups,
the source explorer became outline-only, and a second branch dropdown
broke strict-mode locators. Rewrote tests to cover the equivalent
behavior in the current UI; deleted vacuous if(isVisible()) tests and
duplicates. No app-code changes.
Review consensus fixes from OCR, over-engineering, and senior review passes:

- Make vacuous tests real: mount the Graph subtab before asserting export
  buttons/minimap absence; check the comments badge without pre-opening the
  tab so glyph-click activation is actually exercised
- Delete stale screenshot tests 61/63-66 (dead comment strip, moved edges
  toggle, graph captures owned by visual-polish and hardening) plus their
  orphaned pngs
- Drop dead waitForTimeout sleeps subsumed by auto-retrying assertions,
  redundant double-asserts of single ternary branches, and implementation-
  detail class assertions
- Scope .llm-loading and .annotation-subtab-count locators against future
  strict-mode collisions

Suite: 204 passed, 2 skipped.
@jamesaphoenix
jamesaphoenix merged commit 22e0e2d into jamesaphoenix:main Aug 27, 2026
1 check passed
@jamesaphoenix

Copy link
Copy Markdown
Owner

Thanks, merged!

@jakob1379
jakob1379 deleted the fix/e2e-suite branch August 27, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants