Skip to content

v2159: Fix the three Playwright tests that fail main CI - #1781

Merged
nicu-chiciuc merged 3 commits into
mainfrom
fix-main-ci-playwright-failures
Oct 24, 2026
Merged

nicu-chiciuc merged 3 commits into
mainfrom
fix-main-ci-playwright-failures

Conversation

@nicu-chiciuc

@nicu-chiciuc nicu-chiciuc commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

Why

Main CI has failed on every push since v2139: playwright (1/3), playwright (2/3), and the aggregate ci (24.x). The last green main run was v2138 (run 39484648602). Three tests failed, each for a different cause. No product code regressed, so this PR changes only tests and one baseline.

Cause of each failure

  1. public-legal-route-shell.spec.ts:90, "public legal routes share the public account right sidebar" (first failed on v2142). #1758 centered the OAuth buttons on purpose, so the local password form appears below them without moving them. That PR updated the MCP consent snapshot but not public-route-right-sidebar-account.png, which still showed the left-aligned GitHub button (0.04 pixel ratio, limit 0.03). Fix: regenerated the baseline with the Linux wrapper. The new baseline is pixel-identical to the image that the main CI runner rendered in run 40134444003.
  2. landing-markdown-preview-visual.spec.ts:140, "landing preview FAQ answers the direct-agent questions" (first failed on v2139). #1755 updated @base-ui/react from 1.4.1 to 1.9.0. Base UI 1.6.0 removed arrow-key focus movement between accordion triggers to follow the current APG accordion pattern (mui/base-ui#4965). Because of this, ArrowDown no longer moves focus to the next question. Fix: the test presses Tab, because each trigger stays in the tab order.
  3. commit-review-deleted-link.spec.ts:43, "adding only a trailing newline still renders a visible diff" (first failed on v2139). The test read .count() one time immediately after networkidle and did not wait. The /visual-fixture route is client-only, so it shows its pending screen first. TanStack Router keeps a pending screen visible for at least defaultPendingMinMs (500 ms), so the fixture mounted after networkidle and the count was 0. On a local preview build, the fixture mounted about 65 ms after networkidle. With pendingMinMs: 0, it mounted before networkidle. I did not isolate which package in v2139: Apply every pending dependency update #1755 changed the timing. The test had no wait, so any timing change could break it. Fix: the test now waits until the URL text is visible, as the test above it does.

Validation

  • pnpm test:visual:linux -- --update-snapshots=changed e2e/public-legal-route-shell.spec.ts e2e/commit-review-deleted-link.spec.ts e2e/landing-markdown-preview-visual.spec.ts: 17 passed. Only public-route-right-sidebar-account.png changed.
  • PR CI skips the Playwright job (it runs only on pushes to main). The three tests will run in main CI after the squash.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith with what you need.

nicu-chiciuc and others added 3 commits October 25, 2026 00:56
PR #1758 (v2142) centered the OAuth buttons so the local password form appears
below them without moving them, and updated the MCP consent snapshot. The public
legal route sidebar snapshot still showed the left-aligned button, so main CI
failed on it with a 0.04 pixel ratio. The new Linux baseline matches the image
the main CI runner rendered pixel for pixel.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
PR #1755 (v2139) updated @base-ui/react from 1.4.1 to 1.9.0. Base UI 1.6.0
removed arrow-key focus movement between accordion triggers, following the
current APG accordion pattern (mui/base-ui#4965), so ArrowDown no longer moves
focus to the next question. Each trigger stays in the tab order, so the test
now presses Tab.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The test counted the fixture URL once right after networkidle, with no wait.
The client-only visual fixture route shows its pending screen first, and
TanStack Router keeps a shown pending screen for its 500 ms
defaultPendingMinMs, so the fixture mounts after networkidle and the count was
0. With pendingMinMs 0 the fixture mounted before networkidle. The test now
waits for the URL text to be visible, like the test above it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@nicu-chiciuc
nicu-chiciuc merged commit b8d225f into main Oct 24, 2026
17 checks passed
@nicu-chiciuc
nicu-chiciuc deleted the fix-main-ci-playwright-failures branch October 24, 2026 22:17

This branch was successfully deployed

1 active deployment
preview — 9ecd29bb Deployed Oct 24, 2026 by nicu-chiciuc via Deploy the preview #84
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.

1 participant