Skip to content

ui-kit: test-health batch e3855-ui-kit-03 #3882

Closed

Description

@schlessera

Context

This is one shard of the test-health push in #3855. Shard e3855-ui-kit-03 covers 37 Storybook story files under packages/ui-kit/stories/. They were audited through all eight lenses in 21 clusters, in run th-20261110163718-a0e3cd.

Fixed findings, each with the proof the skill requires:

  • rows/ListRow, rows/QueueItemRow, rows/FileRow, rows/FilterRow, rows/ChoiceOption (Static and MultipleStatic), evidence/SearchResultCard Static, and primitives/Surface StrongButStatic: nothing-to-observe. Each no-handler contract asserted only absences (no role, no tab stop, no .bk-row), and an empty canvas satisfies all of those. Each now first asserts the row's own text renders. Mutation killed in each: the component renders nothing without a handler.
  • rules/NonNegotiables NeverColourAlone: self-comparison. The "no bare coloured mark" check queried .bk-colour-only, a class nothing in the kit emits. It now requires every round dot to share its container with words. Mutation killed: the queue row's dot wrapped in its own span.
  • screens/MorningDigest FactsBeforeAnythingAsks: weak-matcher. "The only card asks for nothing" was asserted as "some role=button exists", which the card itself satisfies. It now checks the card is the FYI kind and that no asking kind is on screen. Mutation killed: the card turned into an approval.
  • screens/ChatAnswer NoProseParagraphAnywhere: weak-matcher. The story only checked that the structured blocks were present, so an added summary paragraph passed. It now pins the body to its seven catalogued blocks. Mutation killed: a prose bubble inserted.

The authoring guide's S6 gains the rule these share: an absence assertion needs a presence beside it.

Scope

Test code under packages/ui-kit/stories/, plus the S6 sentence in docs/process/test-authoring.md.

Out of scope

Product code, the Vitest configuration, and the #2615 fix. screens/RunDetail EveryRegisterAgreesItIsStalled is deferred: three of its assertions compare fixtures with fixtures, and the stalled registers expose only colour and glyph, so a screen-level check needs a component hook first.

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-20261110163718-a0e3cd. 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 #3883, which merged into epic/3855-test-health as 89d55c68f (the push in #3855). It landed in the combined merge without proof of its own; the gate, typecheck and check:pr passed on the combined branch. The epic's two exhaustive runs on dc2439551, 42996974186 and 42997012467, then passed. 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