Repository navigation
test(ui): wait for publication and navigation readiness - #180699
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 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 changesThe publication browser test closes, waits for, and reopens the branch menu before checking the disabled pending action. Example: Publish branch openclaw/reconciled-publication while the Gateway response is deferred.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR makes the publication test independent of menu dismissal timing while preserving its assertions; no actionable patch defects were found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI browser suite supplies synthetic Gateway responses, exercises publication controls, and checks the outgoing request and displayed result. flowchart LR
A[Browser test] --> B[Publication helper]
B --> C[Environment branch menu]
C --> D[Publication UI owner]
D --> E[Mock Gateway]
E --> F[Pending and terminal assertions]
Technical reviewBest possible solution: Keep the focused test repair using the existing navigation helper and unchanged publication assertions. Do we have a high-confidence way to reproduce the issue? Source shows the assertion depends on menu visibility, and the cited CI annotations confirm its timeout; the PR reports a deterministic negative control, which was not rerun during this read-only review. Is this the best way to solve the issue? The change establishes the menu state through existing user controls, waits for observable dismissal, and preserves the deferred request and meaningful assertions without adding production machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 74ca496bf40e. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +5. Total +5 across 1 file. 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 22, 2026, 10:49 AM ET / 14:49 UTC. |
|
Merged via squash.
|
What Problem This Solves
Browser fixtures need to wait for the surface they exercise:
data-panel-slotmarker, so the readiness check uses the pane owner.Remove the now-explained one-off navigation trace. All disabled-state, publisher/request, final URL, draft, setting-value redaction, departed-context, View all, and Details focus assertions remain. No production code, timeout, global wait, or retry changes.
Evidence
ci:fullrun 39813498898, exact head5f9a5209ed3a89d111f4976cec5d46bde7132d5e: passed, including UI units, all nine UI E2E shards, and both real-Gateway shardsProduction LOC and startup imports are unchanged; no visual product change. Test LOC: publication 809 → 814; Plugin Ask 559 → 480; Details navigation 210 → 215. Combined: 1,578 → 1,509 (−69). Remove 92 diagnostic lines and add focused readiness/navigation checks.
Earlier CI investigation
Run 39796945493 passed all 12 publication cases and every other job except the iOS Chrome attachment-menu case in E2E shard 7. That case timed out at
trigger.click()after Playwright found the button visible, enabled, and stable. Its artifact showed a connected browser and open page, but a renderer-read deadline and no crash or disconnect. The exact case passed on tested main parent 271329f in 2.28 s; scheduled main 39796770958 passed E2E7. No inherited failure or source fix was claimed. The prior auto request was retired and main integrated once for a fresh full run.Replacement run 39802159545 passed every job except the diagnosed Plugin Ask click race above; E2E7 and both real-Gateway shards passed. This revision fixes that fixture precondition and preserves all behavior/security checks.
Run 39807879275 passed publication and Plugin Ask coverage. Its Details case
opens Files from View all and dismisses Details in Chat and Dashboardtimed out waiting for the workspace side panel after View all. Both the exact tested main parent and prior PR head passed that case locally; the original CI cause remains unreproduced and is not classified as inherited. The new wait makes the fixture’s existing Chat-readiness precondition explicit. Sidebar panel diagnostics did not include the main Chat pane and are not evidence that Chat was absent. An initial local selector for that precondition incorrectly used a sidebar marker; its synthetic capture showed the transcript already visible, and it was corrected to the existing visible Chat pane selector before publication.