Skip to content

test(ui): align new-session e2e flows with the simplified environment picker - #145463

Merged
steipete merged 3 commits into
mainfrom
steipete/ci-new-session-red-main
Sep 12, 2026
Merged

steipete merged 3 commits into
mainfrom
steipete/ci-new-session-red-main

Conversation

@steipete

@steipete steipete commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

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, and new-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 47ce03dbc6994435af783fecf13d5586e7b307f4 with 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 --check passed. 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.

After: synthetic Linux configuration card captured in full

After: synthetic Fast machine selection retained after catalog failures

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.

@clawsweeper

clawsweeper Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper

clawsweeper Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 11, 2026, 10:26 PM ET / September 12, 2026, 02:26 UTC (Revision 5).

ClawSweeper review

What this changes

Updates 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
Reviewed head: 21458750915ff32e9c324df99f85055c3e4cd542

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-supported repair with preserved assertions and reported targeted validation; no blocking findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The external-contributor proof gate does not apply to this maintainer-context test-only PR. Recorded capture-enabled browser results exercise the changed screenshot calls; unavailable attachments prevent independent framing confirmation but create no additional contributor proof requirement.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor proof gate does not apply to this maintainer-context test-only PR. Recorded capture-enabled browser results exercise the changed screenshot calls; unavailable attachments prevent independent framing confirmation but create no additional contributor proof requirement.
Evidence reviewed 9 items Verified introduced scope: The complete pinned merge-base-to-head delta changes only screenshot selectors, screenshot helper selection, and required screenshot content. Existing dispatch, retention, retry, and timeout assertions are unchanged; the host-verified test merge has the same three-file scope.
Current main still needs the capture repair: Fetched main still uses the broad popup selector and cropped element helper in the cloud OS capture. The production cloud renderer puts its configuration section inside a nested tooltip, explaining why the enclosing picker popup is the wrong capture target.
Existing readiness and capture owner: The reused viewport helper waits for meaningful content, fonts, visibility, and finite ancestor or shadow-host animations before capturing viewport pixels. Both affected cloud fixtures contain one configuration card, and the retained Fast selection is asserted before capture.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +6. Total +6 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 16 10 +6
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 16 10 +6

Review metrics

None.

Technical review

Best 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.

Labels

Label justifications:

  • P3: This repairs optional browser-proof capture without changing production UI behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external-contributor proof gate does not apply to this maintainer-context test-only PR. Recorded capture-enabled browser results exercise the changed screenshot calls; unavailable attachments prevent independent framing confirmation but create no additional contributor proof requirement.

Evidence

What I checked:

  • Verified introduced scope: The complete pinned merge-base-to-head delta changes only screenshot selectors, screenshot helper selection, and required screenshot content. Existing dispatch, retention, retry, and timeout assertions are unchanged; the host-verified test merge has the same three-file scope. (ui/src/e2e/new-session-page.cloud-dispatch.e2e.test.ts:369, 21458750915f)
  • Current main still needs the capture repair: Fetched main still uses the broad popup selector and cropped element helper in the cloud OS capture. The production cloud renderer puts its configuration section inside a nested tooltip, explaining why the enclosing picker popup is the wrong capture target. (ui/src/e2e/new-session-page.cloud-os.e2e.test.ts:52, aca7954e00b1)
  • Existing readiness and capture owner: The reused viewport helper waits for meaningful content, fonts, visibility, and finite ancestor or shadow-host animations before capturing viewport pixels. Both affected cloud fixtures contain one configuration card, and the retained Fast selection is asserted before capture. (ui/src/test-helpers/control-ui-e2e-screenshot.ts:47, 21458750915f)
  • Dependency contract signal: The picker imports Web Awesome’s popover, pinned to 3.12.0 in ui/package.json; the changed selector targets that component’s rendered popup. This establishes a Web Awesome contract dependency, with no dependency on the Codex harness. (ui/src/pages/new-session/where-chip.ts:1, 21458750915f)
  • Published popup structure inspected: npm metadata identifies shoelace-style/webawesome as the package repository. Read-only inspection of the published 3.12.0 archive confirms that the popover renders wa-popup with class popover; its popup component renders the direct shadow-root element with part="popup". The distributed implementation supports the narrowed selector.
  • Prior review disposition and validation: The captured PR body explicitly retains these capture fixes after fix: show package icons instead of generated plugin artwork #145415 merged. It reports four capture-enabled cases failing before the patch and passing afterward in 48.31 seconds, plus targeted lint and UI E2E typechecking. The prior completed review at this same head had no findings; the supplied CI snapshot reports all seven browser shards successful. (21458750915f)

Likely related people:

  • Patrick-Erichsen: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (4 earlier review cycles)
  • reviewed 2026-09-12T01:03:06.555Z sha 6df3dcc :: needs maintainer review before merge. :: none
  • reviewed 2026-09-12T01:28:17.246Z sha 6df3dcc :: needs maintainer review before merge. :: none
  • reviewed 2026-09-12T02:02:23.502Z sha 675a06b :: blocked before merge. :: none
  • reviewed 2026-09-12T02:16:21.022Z sha 2145875 :: blocked before merge. :: none

@steipete

Copy link
Copy Markdown
Contributor Author

Following up on the UI E2E gaps documented in this PR, starting from 6df3dccec392625d28253137863bfe99e233f9dd in an isolated checkout. I will preserve selected-value and dispatch assertions, investigate the keyboard account-selection timeout, and recheck the branch before any fast-forward push. No timeout increases or blanket retries.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 12, 2026
@steipete steipete changed the title fix(ui): unblock main after environment picker changes test(ui): fix environment picker proof captures Sep 12, 2026
@clawsweeper clawsweeper Bot removed the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Sep 12, 2026
@steipete steipete changed the title test(ui): fix environment picker proof captures test(ui): align new-session e2e flows with the simplified environment picker Sep 12, 2026
@steipete
steipete merged commit 5841960 into main Sep 12, 2026
91 of 92 checks passed
@steipete
steipete deleted the steipete/ci-new-session-red-main branch September 12, 2026 02:30
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 12, 2026
… 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant