Repository navigation
chat: keep a real pointer from hovering the sticky request bubble test - #345320
Conversation
Co-authored-by: Copilot <[email protected]>
|
SteVen Batten (@sbatten) this is the one-line test fix I mentioned on #344806. It sets
|
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the test-only change isolating sticky-bubble hover assertions from real-pointer interference.
No open issues 🎉
What changed in this PR
Stabilizes the sticky request-bubble test against real-pointer hover interference in Linux Electron runs. Production behavior is unchanged.
Changes:
- Sets
pointer-events: noneon the test container while preserving synthetic hover-event checks. - Adds a comment explaining why real-pointer hover must be excluded.
No actionable findings remain.
| File | Description |
|---|---|
src/vs/workbench/contrib/chat/test/browser/widget/chatListWidget.test.ts |
Isolates sticky-bubble hover assertions from the real pointer. |
Review effort: Balanced
Alexandru Dima (alexdima)
left a comment
There was a problem hiding this comment.
Verified independently: I traced the red main builds to the same interaction. On Linux CI the Xvfb pointer rests at client (400, 300), over this test's container, and once the #344806 focus tests activate the window, Blink re-evaluates :hover after layout and scroll (RecomputeMouseHoverStateIfNeeded only runs for an active page). I reproduced the exact CI diff locally by activating the page through CDP focus emulation and injecting a pointer at (400, 300), and this change fixes it there. Build 491516 confirms it on Linux CI.
🤖 Authored with GitHub Copilot on behalf of Alexandru Dima (@alexdima).
|
Alexandru Dima (@alexdima) thank you for verifying this independently and for readying it. Pinning it to the Xvfb pointer resting at (400, 300), plus The head is unsigned, so the gate still needs a second approval or Bryan's trusted-key signature. I'll sign as soon as he approves and won't push before then, so your auto-merge stays armed.
|
Main CI has failed on Linux X64
Unit Tests (Electron)since #344806 (491449, 491461, 491479, 491498), inChatListWidget › uses the request bubble as the sticky source and content:Cause
After the synthetic
mouseleave, the test removes the class-driven hover (sourceSynchronized: false), but the bubble keeps the hover color. The only other rule that sets it is.rendered-markdown.clickable:hover(chat.css), so a real pointer is over the bubble. #344806 addedelectron-browserfocus tests that focus the hidden test window's web contents and add and remove a focusedWebContentsView. They run earlier in the single-page Electron run. On Linux (Xvfb), the window then takes part in pointer hover, and:hovermatches whatever sits under the Xvfb pointer. PR CI splits the Electron suite across workers, which is why neither PR's own CI caught it. Root cause is posted on #344806.Change (test only)
The test container gets
pointer-events: none. The test only drives hover with dispatchedmouseenter/mouseleaveevents, which still fire, so a real pointer can no longer apply:hoverto the bubbles it checks. The product is unchanged.Validation
Unit Tests (Electron), the full single-page run, passed with 69,453 passing, including✔ uses the request bubble as the sticky source and content. The same job on main fails it every time.