Repository navigation
test(ui): wait for the mobile Panels header - #181237
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 SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR waits for the active pane’s mobile header before opening Panels in the mobile E2E fixture. Example: The 390×844 mobile Panels scenario starts before the session header appears.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR is a focused, correct fixture repair that remains necessary on current main; no actionable findings were identified. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe browser E2E fixture opens a synthetic session in the production UI bundle and uses the shared navigation helper to reach the mobile Panels sheet. flowchart LR
A[Mobile browser fixture] --> B[Active pane locator]
B --> C[Wait for mobile header]
C --> D[Shared Panels helper]
D --> E[Mobile Panels assertions]
Technical reviewBest possible solution: Retain the explicit mobile-header readiness wait while preserving the shared navigation helper and existing assertions. Do we have a high-confidence way to reproduce the issue? Source establishes the failure path: an absent mobile header makes the immediate visibility check choose the desktop branch; the body links a matching scheduled E2E failure, but this read-only review ran no tests. Is this the best way to solve the issue? The wait is the smallest complete fix for this mobile-specific fixture because it establishes the expected layout before the existing helper samples it, without sleeps, timeout increases, or weaker assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5730de35ae9a. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests +5. Total +5 across 1 file. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
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 22, 2026, 11:06 PM ET / October 23, 2026, 03:06 UTC. |
|
Merged via squash.
|
What Problem This Solves
Fixes a scheduled Control UI E2E timeout when the mobile Panels fixture samples the layout before the mobile header has rendered.
User Impact
No user-visible behavior changes. The mobile layout tests wait for their actual entry point before opening Panels.
Why This Change Was Made
openChatPanelschooses its desktop or mobile path from the currently visible header. The mobile fixture could call it before the header existed and then time out looking for the desktop-only button. Wait for the visible mobile header in the same active pane before calling the helper. Existing geometry, accessibility, focus, and recovery assertions remain intact; no sleeps or timeout changes.Evidence
Scheduled run 39885503944, job
120192944564:ui/src/e2e/mobile-chat-session-menu.e2e.test.ts—Control UI session management mocked Gateway E2E > keeps the light mobile Panels sheet bounded and its actions reachable.All five mobile session-menu cases passed in the native production-bundle E2E lane. The same bounded invocation also passed the unchanged active-progress case. Node runtime matched CI; the optional filesystem transform cache was disabled after local cache publication stalled. Default-tsrs UI typecheck, scoped type-aware lint, formatting, whitespace checks, and independent P0–P2 review passed.