Skip to content

fix(web): settle sidebar selection color assertions (INF-4) - #375

Merged
eliotlim merged 1 commit into
mainfrom
fix/inf-4-font-weight-flake
Oct 5, 2026
Merged

eliotlim merged 1 commit into
mainfrom
fix/inf-4-font-weight-flake

Conversation

@eliotlim

@eliotlim eliotlim commented Oct 4, 2026

Copy link
Copy Markdown
Collaborator

Problem

font-weight-layout.spec.ts flaked on CI shard 3 across 4 PRs (#347, #352, #353, #374): sidebar background-color assertions raced a deliberate 180ms hover-wash transition, and the baseline sample depended on pointer position. Board: INF-4 (OB-925).

Solution

Deflake without weakening assertions: await fonts ready, require inactive animations and identical consecutive-frame colors before sampling, assert exact resting/hover tokens and restoration of the resting color. Test-only change.

Before / After

Behavior Before After
Shard-3 stability intermittent toBe mismatches mid-transition 30/30 locally across 2 workers, zero retries

No visual change (test-only).

Test procedure

pnpm --filter @book.dev/web exec playwright test font-weight-layout.spec.ts --repeat-each=10

Operational notes

None. Board AC tracks 20 consecutive green shard-3 runs post-merge.


Verify: spec 30/30; build/lint/typecheck green. Reviews: none (test-only deflake per gate matrix).

🤖 Generated with Claude Code

@vercel

vercel Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
app.book.pub Ready Ready Preview Oct 4, 2026 2:11pm UTC

Request Review

@eliotlim
eliotlim merged commit 0bbc212 into main Oct 5, 2026
13 checks passed

This branch was successfully deployed

1 active deployment
Preview — 3a631f0b Deployed Oct 4, 2026 by vercel[bot]
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