Repository navigation
test(ui): repair readiness and empty-group browser checks - #179052
Conversation
Use the skeleton accessible name in mobile session-menu checks, wait for the transcript viewport after sheet dismissal, and await the HTML preview load acknowledgment before its scripted interaction. Preserve existing keyboard actions, assertions, and timeout budgets.
|
🦞👀 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 updates browser tests to recognize accessible loading skeletons and wait for mobile layout and HTML preview readiness. Example: The HTML publication browser check opens implementation-plan.html and clicks Count.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: the remaining synchronization changes are focused and preserve coverage, with no actionable patch defects found; the required CI gate remains red. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherControl UI browser tests drive mobile session controls and HTML attachments through mocked Gateway responses or an isolated real Gateway, then assert rendered behavior. flowchart LR
A[Browser checks] --> B[Control UI]
B --> C[Mobile sheet layout]
B --> D[HTML preview host]
C --> E[Geometry settlement]
D --> F[Document load acknowledgment]
E --> G[Existing assertions]
F --> G
Technical reviewBest possible solution: Retain the focused readiness waits and existing assertions, with the remaining required-check failures handled through their owning suites. Do we have a high-confidence way to reproduce the issue? Scheduled CI records the exact dock and HTML failures, and source establishes the missing readiness boundaries; this review ran no target code. Is this the best way to solve the issue? The smallest supported repair reuses existing geometry settlement and preview acknowledgment owners while retaining keyboard, sandbox, persistence, and download assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 734449d46ffb. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +7. Total +7 across 3 files. 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 21, 2026, 1:50 AM ET / 05:50 UTC. |
|
Merged via squash.
|
…ticket (#179058) A warm-restored dashboard attaches its sandbox iframe before hello (#178658) and shows the frame as soon as the app paints (#178740), but the board widget's sandbox host stayed inactive until the gateway was available, so the app HTML fetch and document delivery waited for hello. A restored, unexpired view ticket already authorizes that HTTP read: while the first connection is still connecting (no hello yet), activate document loading when the restored ticket has TTL remaining. Bridge actions stay gated on the connected socket; after hello, gateway availability governs as before; the server still validates the ticket on every request. Evidence (AWS c7a.4xlarge, 11 pairs per theme, filmstrip-measured first visible chart pixels): light 1,000.6 -> 917.4 ms (-94.8 paired, 9/11), dark 1,014.1 -> 909.2 ms (-95.0 paired, 10/11); 0 flashes; hello, FCP, LoAF, chat catch-up and chat route within the no-regression rule. Runtime +13 LOC. Focused/native tests, HTTP/account-scope checks, full UI 846 files (inherited failures repaired on main by #179052); exact-head CI green.
…79052) * test(ui): wait for settled mobile and HTML preview states Use the skeleton accessible name in mobile session-menu checks, wait for the transcript viewport after sheet dismissal, and await the HTML preview load acknowledgment before its scripted interaction. Preserve existing keyboard actions, assertions, and timeout budgets. * test(ui): show empty groups before editing defaults
…ticket (openclaw#179058) A warm-restored dashboard attaches its sandbox iframe before hello (openclaw#178658) and shows the frame as soon as the app paints (openclaw#178740), but the board widget's sandbox host stayed inactive until the gateway was available, so the app HTML fetch and document delivery waited for hello. A restored, unexpired view ticket already authorizes that HTTP read: while the first connection is still connecting (no hello yet), activate document loading when the restored ticket has TTL remaining. Bridge actions stay gated on the connected socket; after hello, gateway availability governs as before; the server still validates the ticket on every request. Evidence (AWS c7a.4xlarge, 11 pairs per theme, filmstrip-measured first visible chart pixels): light 1,000.6 -> 917.4 ms (-94.8 paired, 9/11), dark 1,014.1 -> 909.2 ms (-95.0 paired, 10/11); 0 flashes; hello, FCP, LoAF, chat catch-up and chat route within the no-regression rule. Runtime +13 LOC. Focused/native tests, HTTP/account-scope checks, full UI 846 files (inherited failures repaired on main by openclaw#179052); exact-head CI green.
What Problem This Solves
Scheduled Control UI browser checks fail on mobile loading states, interactions issued before mobile layout or an HTML preview has settled, and empty-group fixtures that still assume the Active filter shows empty groups. This addresses the failures in scheduled main run 39544978413.
User Impact
This is a test-only repair. The existing mobile sharing, keyboard navigation, HTML sandbox, persistence, and download assertions remain intact, with their original timeout budgets.
Why This Change Was Made
The mobile session-menu tests still searched for visible Loading text after #178939 introduced skeletons with an accessible status name. Query that existing name. The dock test sent Home while the hidden mobile sheet's 280 ms grid transition was still resizing the transcript; wait for the existing geometry-settlement helper before each keyboard sequence. The HTML publication test now waits for the preview loader to retire after the inner document's load acknowledgment before clicking its scripted button, matching the existing HTML preview tests.
The group-default tests now select Status → All through the existing sidebar controls before opening their empty fixture group. This follows the sibling tests updated by #178980, which intentionally hides empty groups under the default Active filter. All permission, save, retry, and session-start assertions remain intact.
No new helper, retry, production state, dependency, or startup import is introduced. Simplification pass: reuse existing readiness and filter controls. The four files total 1,888 → 1,900 LOC (+14/−2); production LOC and Solid lifecycle-pattern counts are unchanged.
During preparation, #178964 independently landed the identical mobile loading-selector correction (
e5a09cf9e5a). The remaining effective change against current main is +12/−0 in the dock, HTML, and group-default tests (1,405 → 1,417 LOC).Evidence
mobile-chat-session-menu.e2e.test.tsafter repairchat-scroll-dock.e2e.test.tsafter repairchat-html-publication.real-gateway.e2e.test.tsafter repaire9d35ef7af6retained unchangedfbc99b8c03f: exact seven CI failurespnpm tsgo:ui, targeted lint, formatting,git diff --check642bfeebdb67The dock and HTML failures did not reproduce locally on the baseline. Ten diagnostic dock repetitions did capture Home arriving while transcript height was changing (340 → 661 px), with focus correctly on the transcript. Their scheduled failures are retained as the failure evidence; local passing replays alone are not claimed as proof of causality.
The composer failure preceded
e9d35ef7af6, which clears hover and verifies tooltip dismissal before Escape. Its complete existing scenario passed ten repetitions without further changes. Checked open author PRs, including #179021 and #179029, for overlapping fixes.The runtime build needed for real-Gateway proof measured 329,452 B startup JS gzip and one startup CSS request. It reports an existing violation of the tighter 325,166 B build enforcement limit; this patch has no runtime changes. No appearance changes require screenshots.
ci:fullis requested for every UI shard. No remote testing lease was used.Full-CI follow-up
Initial full CI 39549212497 passed all originally failing shards and both real-Gateway shards. It exposed the seven group-default setup failures repaired here, plus the unchanged solo-widget case below. The exact same eight names fail in the completed UI jobs of scheduled main run 39550194897 at
54b5607e558451bc7fd44d9cd276f7e2991d4676; this attribution is based on names, not shard labels.The solo-widget failure is a missing second
board.updateafter Research → Remove. It did not reproduce in the exact merge-base run or ten instrumented repetitions. All ten clicks observed an open menu, matching widget/tab/revision identity, mutation permission, and an idle widget cell. No extra wait or production change is justified by that evidence. Temporary diagnostics were removed. Its cause remains unresolved; matching main evidence establishes that it predates this PR.Exact failing names from the initial PR run and scheduled main
session-management.group-defaults.e2e.test.ts:solo-widget-chrome.e2e.test.ts:Merged through the native workflow as
02ca7889a6f93ba0595d16fb1cfd901632928b12, verified onorigin/main. No inherited-failure/admin exception was needed for the final head. The actual landed diff is three test files, 1,405 → 1,417 LOC (+12/−0). Native closeout completed; no remote testing leases were used.