GeezerVison is showing github.com — test(web): composer notice stack test no longer flakes on a leftover pointer by tris203 · Pull Request #22511 · pingdotgg/t3code
Conversation
Problem
ComposerBannerStack.browser.test.tsx › "keeps only the usage limit attached while an active goal waits in the collapsible stack" fails intermittently on CI (issue #22324, item 1; also run 39495988192 on #22399). The stack expands on pointer enter. The browser mouse is shared page state, and the test never moves it. If the mouse is already where the stack renders, scrolling or rendering fires a pointer enter, so the stack expands by itself. That hides the "Show other notices" peek (invisible, aria-hidden). The click then times out ("intercepts pointer events" from the container, which by then has the expanded-only z-50 class, then "not stable", then "not visible"), or the earlier not.toBeVisible() check on the goal fails, as #22324 reports.
Change
Right after rendering, the test hovers the attached "Usage limit reached" banner, which sits outside the stack container. The pointer now starts in a known spot off the stack. If the stack had already expanded, the pointer leave collapses it again. The component is unchanged: with a real mouse, hovering before a click always expands the stack, which is the intended behavior.
Scope and approval
A test-only fix for a flaky test, so it falls under the small, focused fix exception. Reported in #22324 (item 1). That issue covers several unrelated flakes; this PR only fixes this one.
Verification
- Reproduced the failure with a scratch test that parks the mouse on a 12px strip where the stack renders, then renders the stack and clicks the peek. Without the fix it fails every time: the peek is already
aria-hidden, so the click times out. With the fix it passes.
vp test run --project browser src/components/chat/ComposerBannerStack.browser.test.tsx: 3/3 pass, run repeatedly, including alongside the scratch test.
- Not reproduced: a separate test file leaving the mouse there first, which is the likely CI path. I couldn't control file order locally.
Investigated and written by Claude Opus 5.5 in Claude Code (T3 Code).
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
… peek
The stack expands on pointer enter. When the shared browser mouse was left
where the stack renders, it expanded and hid the peek before the test could
click it.
Approvability
Verdict: Approved at 714cc37
Macroscope's review found this PR approvable — This is a three-line, test-only flake fix confined to ignored paths, with no production runtime or product-default impact. The additional customer restrictions do not apply.
Notes:
- No code objects were reviewed. Approvability was decided on eligibility alone.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
-
⚙️ Run configuration
-
- Configuration used: Path: .coderabbit.config.ts
- Review profile: CHILL
- Plan: Advanced
- Run ID:
bc7ea9b1-710c-4132-8746-3de88319684d
📥 Commits
-
Reviewing files that changed from the base of the PR and between ca140c4 and 714cc37.
📒 Files selected for processing: 1
-
apps/web/src/components/chat/ComposerBannerStack.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.
📝 Walkthrough
-
The browser test now hovers the usage-limit banner before checking collapsed-stack visibility and attachment behavior.
Changes: Composer banner stack test
| Layer / File(s) |
Summary |
Set pointer state before assertions apps/web/src/components/chat/ComposerBannerStack.browser.test.tsx |
The test hovers the usage-limit banner before checking the collapsed stack and attachment behavior. |
Priority: ⬇️ Low
Estimated code review effort: 1 (Trivial) | ~3 minutes
Change: Bug fix
Suggested reviewers: juliusmarminge
Merge Risk: ⚪ Minimal · up to 714cc
-
This test-only adjustment is mergeable with normal checks.
Architecture risk: 🔵 Low · up to 714cc
-
The change affects 1 system.
Changed systems: apps/web
Architecture concerns
No architecture-level concerns identified.
Review details
-
Systems and components
- observed — apps/web (ui) was modified; 1 changed file maps to changed impact.
Before / after behavior
- observed — Modified behavior in apps/web/src/components/chat/ComposerBannerStack.browser.test.tsx: The test now hovers the usage-limit banner before checking collapsed-stack visibility and attachment behavior.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Description check |
 |
The description covers the intermittent failure, the cause, the focused test-only change, scope justification, issue references, verification steps, observed results, and limitations. |
| Title check |
 |
The title clearly identifies a web test fix for flakiness caused by leftover pointer state. It is concise and uses the repository’s conventional commit format. |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
✨ Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Note Grok responding on behalf of Julius.
Thanks for tracking this down! #22508 just landed on main with the same fix for this test: it hovers the "Usage limit reached" banner first so a leftover pointer can't expand the stack, and it opens the peek with the keyboard. That makes this PR redundant, so I'm closing it as superseded. The other flakes in #22324 are still open if you want to pick one up.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Oct 20, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:XS
0-9 changed lines (additions + deletions).
vouch:trusted
Author is trusted by repo permissions or the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|