Repository navigation
Closed
Labels
area: ui-kitThe presentational design kit: components, tokens, Storybook, visual baselines.priority: p1Scheduled into the current or next milestone.type: testCoverage, harness or proof work with no behaviour change.
Milestone
Description
Context
This is one shard of the test-health push in #3855. Shard e3855-ui-kit-01 covers 37 Storybook story files under packages/ui-kit/stories/. They were audited through all eight lenses in 25 clusters, in run th-20261110163707-ce1411.
Fixed findings, each with the proof the skill requires:
stories/chrome/TabBar.stories.tsx,HitTargetIsExact, self-comparison. The 18/28px expansion was computed asbox − (box − 18), which holds for any box. It is now measured from the drawn icon and label. Mutation killed: a 10px right padding, which the computed-padding checks miss.stories/chrome/MessageBubble.stories.tsx,OnlyTheUserGetsABubble, nothing-to-observe. The story claimed that a brain turn has no bubble, but it rendered only a user turn. Mutation killed: a border on the brain bubble.stories/chrome/ScreenHeader.stories.tsx,DividerBelongsToNav, nothing-to-observe. Only the nav case was rendered. All four cases are now asserted. Mutation killed: a rule on every variant.stories/blocks/CodeBlock.stories.tsx,NoWrap, empty-by-construction. "Scrolled to the end" held at 0 for a block with no overflow, so the story passed when the line wrapped. Mutation killed: alwayspre-wrap.stories/chrome/DiscButton.stories.tsx,PairNewChatExpanded, settling-sleep. A 250 ms sleep is replaced by awaiting the button's own transitions. 10 of 10 runs clean.- Opaque boolean assertions are replaced with value comparisons in
ComposerMic,PendingFollowUps,LinkPreviewCard,LaneChartandQuoteCard. These are cleanups, and each file was measured green afterwards.
Baseline failures in 14 of these files were the fake-microphone staging race in #2615, not the stories. The evidence is on that issue.
Scope
Test code under packages/ui-kit/stories/ only, as listed above.
Out of scope
Product code, the Vitest configuration, and the #2615 fix.
Acceptance criteria
bun scripts/test-health.ts batch verify --base origin/epic/3855-test-healthisok.- The batch pull request's
proofpasses on its head.
Verification
Mutation receipts and measurements are in the run directory for th-20261110163707-ce1411. The batch gate passed.
Contract impact
None.
Metadata
Metadata
Assignees
Labels
area: ui-kitThe presentational design kit: components, tokens, Storybook, visual baselines.priority: p1Scheduled into the current or next milestone.type: testCoverage, harness or proof work with no behaviour change.
Activity
schlessera commentedon Nov 11, 2026
Delivered by #3864, which passed its
proofon its own head and merged intoepic/3855-test-healthasa0aaece34(the push in #3855). GitHub does not applyClosesfor a pull request into a non-default branch, so I'm closing this by hand. The change reachesmainwith the epic's single landing pull request.