Repository navigation
test(ui): use touch events for widget scroll gestures - #178578
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR replaces synthetic scroll gestures with sequential Chromium touch events in the widget-scrolling browser test. Example: The mobile Chromium fixture performs a 240 px swipe through an embedded widget.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR makes a focused repair to an existing browser regression test; no actionable introduced defect was found. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI browser fixture sends input through Chromium CDP and observes transcript scrolling across sandboxed widget frames. flowchart TD
A[Mobile browser fixture] --> B[CDP touch events]
B --> C[Chromium touch handling]
C --> D[Chat and widget frames]
D --> E[Scroll and release observations]
E --> F[Drag inertia and reader assertions]
Technical reviewBest possible solution: Use the existing swipe helper to inject native touch events while preserving all behavioral assertions. Do we have a high-confidence way to reproduce the issue? The preceding merged PR documents the Linux zero-movement failure, but this read-only review executed no target code and cannot independently establish its precise platform cause. Is this the best way to solve the issue? The patch is the smallest complete routing change in the existing gesture owner, removes the replaced injection path, and preserves independent assertions against drag-only motion. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 59797f91cd08. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +5. Total +5 across 1 file. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 20, 2026, 1:18 PM ET / 17:18 UTC. |
What Problem This Solves
The widget scrolling browser test can record zero movement on Linux when its synthetic scroll gesture bypasses the platform touch recognizer.
User Impact
No application scrolling behavior changes. The existing browser test exercises the touch input path used by its mobile fixture.
Why This Change Was Made
Send sequential touch-start, touch-move, and touch-end events through Chromium's touch emulator. The sequence supplies no synthetic timestamps and performs no intermediate layout reads. All drag, inertia, monotonicity, and retained-reader assertions remain unchanged.
Evidence