Repository navigation
Closed
Labels
agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: ui-kitThe presentational design kit: components, tokens, Storybook, visual baselines.priority: p0Drop everything: a security hole, data loss, or a broken release.type: fixSomething is broken and must behave the way it is documented.
Milestone
Description
Failure
The ready proof for #3491 (epic/1777-media-hygiene, which now contains main up to e6a417ba6) failed in browser (1) (run 41658433753, job 125999188587). #3491 changes no ui-kit file.
FAIL visual (chromium) tests/visual/rank-footer.visual.tsx > rank footer keeps keyboard phrases readable after reorder: dark, 320
Error: expect(element).toMatchScreenshot()
Screenshot does not match the stored reference.
Expected image dimensions to be 192×303px, but received 320×504px.
❯ tests/visual/rank-footer.visual.tsx:74:24
All four "after reorder" cases fail the same way:
- dark 320 and light 320: 192×303 expected, 320×504 received;
- dark 960 and light 960: 371×256 expected, 618×427 received.
That is a uniform ×1.667 scale. The four "arrows only" cases pass.
Suspected cause (unconfirmed)
The only recent main change to ui-kit's visual project is #3471 (#3281, StatusIndicator, b5598e253). It merged on the reduced-proof path, so its hosted browser proof never ran. It added:
tests/visual/status-indicator.visual.tsx, whosemountcallspage.viewport(width, height)and setsdocument.documentElement.style.fontSize;- a
statusCapturecommand; - a
vitest.config.tsinclude.
One possibility is that the browser-level state these tests set (viewport, scale or root font size) leaks into later files in the same browser project. The other is that a token change in src/tokens.css changed the rank footer's geometry.
Acceptance criteria
- Identify the actual cause, with evidence such as running
rank-footer.visual.tsxalone and afterstatus-indicator.visual.tsx, on main's tree, in the pinned image or Chromium 1243. - Fix the cause, not the baseline:
- if it is leaked state, restore it in the leaking test's teardown;
- only if the rank footer's rendering legitimately changed, update the references, with a visual review.
- Record a mutation or failing-first receipt.
- After the fix,
rank-footer.visual.tsxandstatus-indicator.visual.tsxpass in either order.
Metadata
Metadata
Assignees
Labels
agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: ui-kitThe presentational design kit: components, tokens, Storybook, visual baselines.priority: p0Drop everything: a security hole, data loss, or a broken release.type: fixSomething is broken and must behave the way it is documented.
Activity
schlessera commentedon Nov 3, 2026
Claiming (claim token
wi-3502-ae47). Branch:fix/3502-visual-viewport-leak. Collision report: path collision with draft #3059 onpackages/ui-kit/vitest.config.ts; closure-only reports otherwise.schlessera commentedon Nov 3, 2026
Cause confirmed and fixed in draft #3508.
formViewportreturns the previous outer size, and #3471's teardowns passed it straight back, so the outer page grew 100×120 per test (1280×720 became 3080×2880). That removed Vitest's 0.6 iframe scale that the rank-footer references were taken at. Reproduced in the pinned image (status-indicator → rank-footer: 4 failed with the CI dimensions; rank-footer alone passes). After the fix, both orders pass 26/26. No reference changed.