Skip to content

test(smoke): adopt playwright-config 2.1.0's clipped-box and split-word checks - #348

Merged
Sawtaytoes merged 1 commit into
mainfrom
test/clipped-overflow
Oct 5, 2026
Merged

Sawtaytoes merged 1 commit into
mainfrom
test/clipped-overflow

Conversation

@Sawtaytoes

Copy link
Copy Markdown
Owner

What changed

  1. @charcuterie/playwright-config goes from ^2.0.0 to ^2.1.0. @playwright/test stays at ~1.62.1.
  2. The smoke uses the shared expectNoHorizontalOverflow for clipped boxes. Version 2.1.0 also checks every overflow-x: hidden | clip box. That is the clipping half of the local check that test: browser smoke over every route in four windows #347 added, so this PR deletes that half.
  3. No ignore is needed. .strip (the poster shelf) computes overflow-x: auto, and the shared helper does not check scrollers. The helper itself skips the #sub ellipsis box.
  4. The scrolling half of the local check stays. Its new name is expectNoStrayInlineScroller. The shared helper does not check auto/scroll boxes on purpose, because a fleet table scrolls. In this app, .strip is the only intended sideways scroller, so any other scroller is a defect (for example, .chfilters-scroll). narrow-scroll-test checks this rule only at 390 and 320, and its fixture leaves the board-game routes empty. The smoke checks it on every route with data, in all four windows.
  5. Every route now also runs expectNoSplitWords.

New failures and verdicts

There are no new failures. All 52 tests passed, in all four windows, on two complete runs.

The new checks do find defects in this app. I added two temporary injections at 384px and removed them before the commit:

  • A 600px box in #collection-grid failed with: main#_r_0_.charcuterie-scrollbar.relative holds 617px in 384px.
  • An h2 that breaks "Extraordinarily" failed the split-word check.

Screenshots

I examined the screenshots for all 12 routes in the narrow window. The new checks found no defects. Two things already existed before this PR:

  • The Guests "+" button (U+FF0B) paints blank in the sandbox. The sandbox has no font with that glyph. This is an environment fact, not an app change.
  • On /pending, the intro text wraps in a narrow column beside "Mark all as seen". The text is readable, and no check flags it.

🤖 Generated with Claude Code

…rd checks

`expectNoHorizontalOverflow` 2.1.0 asks every `overflow-x: hidden | clip` box whether its content
is wider than it is, which is the clipping half of the local `expectNoClippedInlineOverflow` that
#347 added because the 2.0 helper only measured the document (and under `<main>`'s
`overflow-x: hidden` the document never overflows). That half is deleted and the shared helper
does it. No `ignore`: `.strip`, the poster shelf, computes `overflow-x: auto`, so the shared
helper never flags it; `#sub`'s ellipsis is skipped by the helper itself.

The SCROLLING half stays, renamed `expectNoStrayInlineScroller`: the shared helper leaves
`auto`/`scroll` alone on purpose (a fleet table scrolls), but in this app `.strip` is the only
deliberate sideways scroller and any other is a defect (`.chfilters-scroll`). narrow-scroll-test
holds that rule at 390 and 320 only, over a fixture with empty board-game routes; the smoke holds
it on every route, data painted, in all four windows.

Every route now also runs `expectNoSplitWords`. All 52 tests pass in four windows with no new
failure. Negative controls at 384px: a 600px box in `#collection-grid` fails with "main holds
617px in 384px", and an h2 breaking "Extraordinarily" fails the split-word check.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown

Visual regression — queuepilot (vrt)

✅ No visual changes.

changed new deleted unchanged
0 0 0 48

Open the full diff report

@Sawtaytoes
Sawtaytoes merged commit 08be6c1 into main Oct 5, 2026
5 checks passed
@Sawtaytoes
Sawtaytoes deleted the test/clipped-overflow branch October 5, 2026 12:18
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