Repository navigation
test(ui): align new-session e2e flows with the simplified environment picker - #145463
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. Reviewed September 11, 2026, 10:26 PM ET / September 12, 2026, 02:26 UTC (Revision 5). ClawSweeper reviewWhat this changesUpdates New Session browser tests to capture the intended environment popup and complete cloud configuration cards while preserving existing behavioral assertions. Merge readiness✅ Ready for maintainer review Keep open: the focused capture repairs remain useful on current main, and the recorded decision resolves the earlier overlap concern. No actionable correctness or security findings remain. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI’s New Session picker selects local, device, or cloud execution environments. Its browser tests supply synthetic Gateway responses, exercise those selections, and optionally save screenshots for review. flowchart LR
A[Synthetic Gateway responses] --> B[New Session environment picker]
C[Browser test interactions] --> B
B --> D[Selection and dispatch assertions]
B --> E[Target popup or cloud card]
E --> F[Wait for presentation readiness]
F --> G[Viewport screenshot]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +6. Total +6 across 3 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Retain the focused capture corrections using the existing presentation-readiness helper and preserve the behavioral assertions. Do we have a high-confidence way to reproduce the issue? Yes: capture-enabled New Session cases encounter nested popup matches in current source, and the PR records four before-fix failures and after-fix passes; this review did not execute them. Is this the best way to solve the issue? Yes: narrowing the popup target and reusing the existing viewport helper addresses capture ownership without weakening selection or dispatch checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against aca7954e00b1. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
Following up on the UI E2E gaps documented in this PR, starting from |
|
Merged via squash.
|
… picker (openclaw#145463) Repair New Session environment-picker proof captures in three e2e files. Target the outer picker popup and capture full cloud configuration cards with the selected machine visible, avoiding strict-locator failures and cropped screenshots. Preserve the existing interaction and dispatch assertions. Four capture-enabled cases failed before and passed after in the existing regression proof; native landing verifies exact-head hosted CI. Refs openclaw#145183 openclaw#145415
Refs #145183 #145415
What Problem This Solves
Resolves a problem where capturing synthetic browser proof for the New Session environment picker fails because a broad popup selector matches both the picker and nested detail popups. Cloud configuration captures can also crop out the card or record its opening transition.
Why This Change Was Made
Align the remaining three e2e files with the simplified environment picker:
new-session-page.cloud-dispatch.e2e.test.ts,new-session-page.cloud-os.e2e.test.ts, andnew-session-page.projects-places.e2e.test.ts. Select the picker-owned popup for picker-only captures, and use the existing viewport screenshot helper to settle and capture the full cloud configuration surface with the selected machine visible.User Impact
Repairs synthetic browser proof for the New Session environment picker. Production UI behavior is unchanged, and the existing interaction, dispatch, retry, and timeout assertions remain intact. The implementation repair is already on main through #145415; the maintainer decision is to retain these additional capture fixes.
Evidence
The existing capture-enabled regression proof reports four selected cases failing on main
47ce03dbc6994435af783fecf13d5586e7b307f4with Playwright strict-locator violations, then all four passing with this patch in 48.31 seconds. Those cases cover cloud dispatch and selection retention after catalog retry exhaustion, fixed Linux configuration, and Gateway labels after late recovery scope or system information.The prior proof pass inspected the synthetic screenshots and reported complete configuration cards and the retained Fast selection visible, with no real user, provider, or Gateway data. Targeted type-aware lint, the UI E2E typecheck, and
git diff --checkpassed. The lead's Codex review is scoped-clean at P1; the existing final-candidate proof also records a scoped-clean P2 review. Landing rechecks the exact head and native CI gates.ClawSweeper review
The published review of the earlier revision reported no correctness findings and requested a maintainer decision about overlap and conflicts. The decision is to retain this focused three-file e2e remainder; current GitHub mergeability confirms the earlier conflict is resolved. The suggestion to retire the PR is declined because these capture fixes remain needed. No additional code fixups were required during landing, so no re-review request was posted.