Registry Mirror
Skip to content

Conversation

@t3dotgg

@t3dotgg t3dotgg commented Dec 2, 2026

Copy link
Copy Markdown
Member

Problem

tooltip.browser.test.tsx:151 ("keeps a fading shared tooltip in place when the combobox list scrolls") fails with The tooltip faded out visibly: expected 0 to be greater than 0. It failed twice in the last 24h on unrelated PRs.

expect.element(tooltip).toBeVisible() passes as soon as the popup mounts, while it still fades in from opacity 0. When the test scrolls at that moment, the tooltip closes and fades out from near zero opacity. No sample then sees opacity above 0.05.

Change

The test waits until the popup's computed opacity is 1 before it measures the open position and scrolls. Test-only. The product behavior is correct.

Scope

Test-only fix for a CI flake found by the daily CI health pass. No issue needed.

Verification

  • Forced the timing: a MutationObserver that resolved the moment the popup mounted, awaited in place of toBeVisible. The old test failed with the exact CI message 3 of 3 runs. With the fix added, 3 of 3 passed. The harness is not committed.
  • Full tooltip.browser.test.tsx: 17/17 pass. vp run check:changed passes.

Reviewed with sol-loop: 1 pass with GPT-6.2 Sol. Sol verdict: approved

Made by Claude Opus 5.5 in Claude Code (T3 Code).

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Dec 2, 2026
@coderabbitai

coderabbitai Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The shared-tooltip scroll test waits for the popup’s computed opacity to reach "1" before measuring its position and scrolling.

Changes: Tooltip scroll test

Layer / File(s) Summary
Wait for popup opacity
apps/web/src/components/ui/tooltip.browser.test.tsx
The test waits for the popup’s computed opacity to equal "1" before recording its opening position and scrolling.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Suggested reviewers: juliusmarminge, stienswout

Merge Risk: Minimal · up to d4cc9

This change only stabilizes an intermittently failing tooltip scroll test and does not alter product behavior. No merge-blocking risk remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the test change: the tooltip fade test now waits for the fade-in before it scrolls. This matches the only changed file, which waits for computed opacity to reach 1 before measuring and…
Description check Passed The description follows the template sections: Problem, Change, Scope, and Verification. The Problem section gives the failing test, the error text, the cause (toBeVisible passes while opacity is stil…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the test change: the tooltip fade test now waits for the fade-in before it scrolls. This matches the only changed file, which waits for computed opacity to reach 1 before measuring and scrolling. It is specific and follows the conventional commit style of the template. It is a test-only change, and the title says so through the test(web) prefix.

Full details: Description check

Explanation

The description follows the template sections: Problem, Change, Scope, and Verification. The Problem section gives the failing test, the error text, the cause (toBeVisible passes while opacity is still 0), and the failure history. The Change section explains the wait-for-opacity fix and that it is test-only. The Scope section states this is a test-only CI flake fix and why no issue is needed. The Verification section gives the forced-timing reproduction (3 of 3 failing before, 3 of 3 passing after), the full suite result (17/17), and the check command. It notes that the harness is not committed. The template's optional model attribution is present. Minor gap: the template asks for a conventional commit title, which the PR title satisfies. The Scope section does not link an issue, but the author explains why none is needed, which the template allows. For a test-only change, screenshots and recordings are not needed.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between dff224d and d4cc953.

Files selected for processing: 1

  • apps/web/src/components/ui/tooltip.browser.test.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

@macroscopeapp

macroscopeapp Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at d4cc953

Macroscope's review found this PR approvable — This change is confined to ignored paths and is described as making a tooltip test wait for fade-in before scrolling. No product-default or diagnostic-suppression change is indicated, and no material risk requiring human judgment is evident.

Notes:

  • No code objects were reviewed. Approvability was decided on eligibility alone.

You can add or adjust custom eligibility rules. Learn more.

@t3dotgg
t3dotgg merged commit eff4756 into main Dec 2, 2026
38 checks passed
@t3dotgg
t3dotgg deleted the test/tooltip-fade-sample branch December 2, 2026 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant