Skip to content

ui-kit: test-health batch e3855-ui-kit-01 #3860

Closed

Description

@schlessera

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 as box − (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: always pre-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, LaneChart and QuoteCard. 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-health is ok.
  • The batch pull request's proof passes on its head.

Verification

Mutation receipts and measurements are in the run directory for th-20261110163707-ce1411. The batch gate passed.

Contract impact

None.

Activity

  1. added this to the 0.45.0 milestone on Nov 10, 2026
  2. added
    type: test
    area: ui-kit
    on Nov 10, 2026
  3. added
    priority: p1
    on Nov 10, 2026
  4. schlessera commented on Nov 11, 2026

    @schlessera
    OwnerAuthor

    Delivered by #3864, which passed its proof on its own head and merged into epic/3855-test-health as a0aaece34 (the push in #3855). GitHub does not apply Closes for a pull request into a non-default branch, so I'm closing this by hand. The change reaches main with the epic's single landing pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: ui-kitpriority: p1type: test

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions