Skip to content

fix: stabilize macOS component tests - #3463

Draft
zxch3n wants to merge 1 commit into
mainfrom
fix-main-ci
Draft

zxch3n wants to merge 1 commit into
mainfrom
fix-main-ci

Conversation

@zxch3n

@zxch3n zxch3n commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Related issue

Problem / pressure

The main-branch macOS product test run 45924145021 failed in two component tests. The boot failure test depended on a fresh usage-sharing module registry. The Add member test could send keys before Base UI moved focus to the menu.

Summary

  • Run the boot failure suite in the isolated Vitest project so it starts with fresh usage-sharing state.
  • Open Add member from its focused trigger and advance a fake animation frame for each keyboard action. Keep the avatar, focus, typeahead, and member selection assertions.

Visual explanation

Simple change: the patch changes test setup and event timing only.

Before / after

Before After
The shared jsdom suite could suppress the expected boot beacon and send menu keystrokes to the document body. The boot test has its own module registry, and the keyboard test drives focus using a fake clock.

Test plan

  • On macOS with Node 22.23.5, the same component command as the failing job passed all 5,497 tests in 486 files.
  • Repository lint, boundary checks, typecheck, formatting, and docs check passed.

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant