Skip to content

ui-kit: test-health batch e3855-ui-kit-04 #3874

Closed

Description

@schlessera

Batch e3855-ui-kit-04 of the test-health push (#3855): 67 packages/ui-kit files (unit tests, browser tests and voice/states stories), audited in 35 clusters through all eight lenses (run th-20261110163815-cd4f39).

Fixed findings

  • tests/fixtures.test.ts, empty-by-construction ×2: the phone and email checks asserted only inside a non-null guard, so a roster with no phones or emails passed. Each now requires at least one first.
  • tests/fixtures.test.ts, conditional-assertion: the column-width check returned early for a partly pinned table and ran with zero assertions. It now asserts unconditionally.
  • tests/fixtures.test.ts, opaque-failure ×2: Set.has(...) toBe(true) checks now use toContain, so a failure names the missing path or tag.
  • tests/print-theme.test.ts, opaque-failure: startsWith boolean replaced by a string comparison.
  • tests/hygiene-card-copy.test.tsx, wrong-object: the state text and the busy label shared one string, and the test only asserted the default was absent. A card that dropped busyLabel still passed. The strings now differ and the label must appear.
  • tests/transcript-qualifiers.test.tsx, nothing-to-observe: dropping the restored qualifier's glyph went unnoticed, because only the separately built accessible name was read. The three glyphs are now pinned.
  • tests/visual/ghost-sweep.visual.tsx, conditional-assertion: the copy-identity checks looped over unsized copies. A window that lost its snapshot passed.
  • stories/voice/Live.stories.tsx, conditional-assertion: interruptOnlyWhileSpeaking returned early when Interrupt was missing, so L4 Speaking passed without the control.
  • stories/voice/Start.stories.tsx, nothing-to-observe: PersonaKeyboard claimed arrow-key movement but pressed no key.
  • tests/visual/hygiene-review.visual.tsx and tests/visual/composer-caret.visual.tsx, opaque-failure: boolean comparisons replaced by value comparisons.

Left open

  • Deferred matrix-multiplier in tests/visual/contact-card-fact-keys.visual.tsx and tests/visual/files-close.visual.tsx. The theme only switches color-scheme, so the light copies of the geometry and naming cases have no failure mode of their own. Reducing them needs every removed template-titled case declared, so they are left for a dedicated reduction.

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 #3875, which passed its proof on its own head and merged into epic/3855-test-health as fcc7f99ce (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