Repository navigation
fix(tests): keep the released Dashboard route proof on a desktop viewport - #2372
Conversation
Released Gateway 2026.11.10 includes openclaw/openclaw#190409, which hides the in-page route heading under the phone floating header. Headless Edge's default 756x488 viewport matches that layout, so the Skills route proof never saw a visible Skills heading and main timed out deterministically. Pin the owned CDP page to 1280x900 before navigation, assert it in the native Edge smoke, and report the viewport in the route probe state. Co-authored-by: Copilot App <[email protected]>
|
🦞👀 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 pins the Dashboard proof browser to 1280×900, checks the applied viewport, and includes its dimensions in route diagnostics. Example: The released Gateway 2026.11.10 Skills route is checked by headless Edge.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it makes a focused, useful repair to the Dashboard test harness, and current main lacks the viewport override; no introduced defect was found. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe setup/connect E2E suite uses an isolated Edge process and page-level CDP connection to navigate the released WSL Gateway and verify authenticated Dashboard rendering. flowchart LR
A[Setup connect E2E] --> B[Owned Edge helper]
B --> C[Page CDP connection]
C --> D[Desktop viewport]
D --> E[Released Gateway Dashboard]
E --> F[Authentication and route assertions]
Technical reviewBest possible solution: Keep viewport selection in the existing browser helper and retain the current authentication, visibility, and route assertions. Do we have a high-confidence way to reproduce the issue? The visible-heading predicate and upstream phone-layout CSS establish the failure path, supported by the author's explicit viewport and Gateway-version comparison; this review did not execute a reproduction. Is this the best way to solve the issue? Setting the intended desktop viewport before navigation is the smallest complete repair and preserves the independently checked rendering and authentication contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3981f6364266. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
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. Review metrics
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 November 25, 2026, 3:20 AM ET / 08:20 UTC. |
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
d40eacfd6f6cd9b6aa05e155e96fb20493891264↑ Real 2026.11.10 Control UI: the exact probe returns skills=true at 1280x900 and false at the default 756x488.
↑ Native Edge smoke RED shows 756x488, GREEN shows 1280x900; build.ps1, Shared, Tray and timing ratchet pass; two-model review found no MEDIUM+ issue.
↓ Only one CI pass on this head so far; phone-layout Dashboard coverage is out of scope.
↑ It clip-hides
.content-header .page-titleunder the phone floating header, and the real 2026.11.10 UI reportsh1 Skills [hidden]at 756x488.↑ The CI failure screenshot is 756x488 and shows the title in the floating header.
↑ Green main used Gateway 2026.11.8, red used 2026.11.10; 2026.11.8 passes at both viewports.
What Problem This Solves
Main CI is red on every run. The Setup and connect E2E job installs the latest released Gateway, and 2026.11.10 moved the page title into a floating header when the window is phone-sized. Our Dashboard route proof runs headless Edge at its default 756x488 viewport, so it never sees a visible "Skills" heading and times out, even though the Skills page renders and is authenticated.
User Impact
No user-visible change. Developers get a green Setup and connect E2E lane again, and the Dashboard route proof checks the desktop Dashboard consistently, whatever the released Control UI's phone layout does.
Why This Change Was Made
The proof is meant to show the authenticated desktop Dashboard, but it used whatever viewport headless Edge picked. The owned browser now pins its page to 1280x900 through CDP before any navigation, the native Edge smoke asserts that size, and the route probe reports the viewport so a lost override would be obvious in a failure log. The route assertions are unchanged.
Why now: the only main commit between green and red (#2371) touched the chat composer. The real change was the npm
latestGateway moving from 2026.11.8 to 2026.11.10, which includes upstream openclaw/openclaw#190409 ("float the phone page header"). That change matches(max-width: 932px) and (max-height: 500px) and (orientation: landscape)(and mobile nav at 900px or narrower) and visually hides the in-page heading.Evidence
Real Control UI repro on a clean host (Crabbox RTX 2, ARM64, isolated state in
C:\oc\gw1110andC:\oc\gw118), using the test's exact DOM probe with token auth on a loopback Gateway:h1 Skillsvisible, skills=trueh1 Skillshidden, skills=false (CI's exact state)Native Edge smoke
OwnedEdgePageSupportsEvaluationAndScreenshotWithoutAGatewayon the same host:Expected: "1280x900",Actual: "756x488".stageMs=...,network:545,viewport:551(the new stage costs about 6 ms).CI failures this fixes: main 3981f63 run 45558413148 (job 139016130642), and #2370 run 45563238668 attempts 1 and 2 (jobs 139031875277 and 139045182775). Last green: main 17cadf7 run 45500480373 (job 138822291865, Gateway 2026.11.8).
Local validation on head
d40eacfd:./build.ps1: passed.dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj: 5972 passed, 0 failed, 29 skipped.dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj: 6948 passed, 0 failed.dotnet test tests/OpenClaw.E2ETests --filter FullyQualifiedName~OpenClaw.E2ETests.Setup.SetupAndConnectTests(no E2E opt-in): 56 passed, 22 opt-in skips.scripts/validate-test-timing-patterns.ps1andgit diff --check: passed.Review: two-model adversarial review (claude-opus-5.5 and gpt-6-astra) found no MEDIUM or higher issue. The adopted low-severity suggestion was reporting the viewport in the route probe state.
Not verified: the full
ReleasedGateway_SearchDenialAndDashboardRoutesWSL E2E on this head before this PR's CI; it needs the WSL runner. The local Edge smoke can't run on the authoring machine because managed Edge never publishes theabout:blankpage target, so it ran on Crabbox. Phone-layout coverage of the Dashboard is intentionally out of scope.Required proof pools
windows-wsl-gateway-e2e: covered by this PR's Setup and connect E2E (WSL Latest) job, which runs the released Gateway route proof.