Repository navigation
v2159: Fix the three Playwright tests that fail main CI - #1781
Merged
Merged
Conversation
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]>
Contributor
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Main CI has failed on every push since v2139:
playwright (1/3),playwright (2/3), and the aggregateci (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
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 notpublic-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.landing-markdown-preview-visual.spec.ts:140, "landing preview FAQ answers the direct-agent questions" (first failed on v2139). #1755 updated@base-ui/reactfrom 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,ArrowDownno longer moves focus to the next question. Fix: the test pressesTab, because each trigger stays in the tab order.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 afternetworkidleand did not wait. The/visual-fixtureroute is client-only, so it shows its pending screen first. TanStack Router keeps a pending screen visible for at leastdefaultPendingMinMs(500 ms), so the fixture mounted afternetworkidleand the count was 0. On a local preview build, the fixture mounted about 65 ms afternetworkidle. WithpendingMinMs: 0, it mounted beforenetworkidle. 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. Onlypublic-route-right-sidebar-account.pngchanged.main). The three tests will run in main CI after the squash.🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmithwith what you need.