Repository navigation
Conversation
ymichael
deleted the
bb/ci-flake-fix-theme-preview-tooltip-dismissal-thr_bi3h5tmfs6
branch
September 8, 2026 18:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
The tooltip test compared a 250 ms real-time sleep with the production 700 ms dismissal timer. If the test worker was suspended past 700 ms, React's async
actcould process the already-due dismissal before returning from the shorter sleep, so the intermediate assertion observed null even though production retained the correct 700 ms delay. A bounded 750 ms event-loop suspension reproduced the exact current-main assertion failure.What changed
Theme Preview's test now switches to fake timers only after focus has opened the tooltip, then checks the exact dismissal boundary: content remains at 699 ms and disappears after the final 1 ms. Production code and its 700 ms delay are unchanged.
How you verified
expected null not to be nullat the intermediate assertion.pnpm exec turbo run test --filter=bb-plugin-theme-preview --concurrency=2 --output-logs=full --summarize=false(74 tests passed)pnpm exec turbo run typecheck --filter=bb-plugin-theme-preview --concurrency=2 --output-logs=full --summarize=falsepnpm exec turbo run build --filter=bb-app --concurrency=2 --output-logs=full --summarize=false(12 tasks passed)git diff --check