Repository navigation
test(ui): use native picker shells in responsive fixtures - #198532
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 Summary: ✅ CompletedThis 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 replaces obsolete model and effort menu fixtures with native popover shells and loads their shared stylesheet. Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR makes the responsive fixture match production’s closed picker state without weakening assertions; no actionable patch defect was found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe responsive browser suite combines static chat markup with production stylesheets, then measures composer geometry and control reachability across viewport sizes. flowchart LR
A[Static chat fixture] --> C[Browser page]
B[Production stylesheets] --> C
C --> D[Closed native picker shells]
D --> E[Composer geometry assertions]
Technical reviewBest possible solution: Keep the existing layout assertions and represent initially closed pickers with the production popover structure and stylesheet. Do we have a high-confidence way to reproduce the issue? Source confirms that the fixture includes obsolete menu content absent from production’s initial closed state; the reported 568×320 failures were not independently executed in this read-only review. Is this the best way to solve the issue? This is the smallest complete fixture repair: reuse the existing native overlay contract, remove stale option markup, and preserve all assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8c18a7bed28f. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests -12. Total -12 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. 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 November 13, 2026, 8:10 PM ET / November 14, 2026, 01:10 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
What Problem This Solves
Three responsive chat layout tests fail because their static fixture still renders pre-popover model and effort menus. Phone-sheet CSS exposes that obsolete closed-menu content, adding 366px to the composer footer.
User Impact
No product behavior changes. The fixture now represents the production composer's initial closed state, restoring useful coverage of short landscape layouts.
Why This Change Was Made
Use initially empty native popover shells and load the owning overlay stylesheet. This removes unused static option markup while preserving every existing geometry and actionability assertion. The change is limited to one test file and removes more code than it adds.
Evidence
Scheduled run 43527024791 and a local base reproduction fail these cases in
ui/src/pages/chat/chat-responsive.browser.test.ts:keeps the composer bottom controls, attachment, and primary action aligned at 568x320keeps short-landscape composer adjunct rows scroll-reachablekeeps short-landscape slash menu visible inside the bounded composerAll 53 cases in the responsive layout group pass after the fix, including the three failures. Targeted tsrs typechecking, oxlint, formatting, diff checks, and independent Codex review pass. No sleeps, timeout increases, or weaker assertions.
CI: exact-head run 43537325546 completed with the original responsive failures resolved. Its14 inherited UI-unit failures are13 original matching signatures plus the later-main semantic-option assertion (#198546). Failed test and owner blobs are unchanged. Landing uses the authorized inherited-failure route and retains failed CI.