Skip to content

test(ui): wait for publication and navigation readiness - #180699

Merged
steipete merged 4 commits into
mainfrom
test/publication-menu-reopen
Oct 22, 2026
Merged

steipete merged 4 commits into
mainfrom
test/publication-menu-reopen

Conversation

@steipete

@steipete steipete commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Browser fixtures need to wait for the surface they exercise:

  • Publication admission moves the disabled “Publishing…” action into the branch menu, which can close during the handoff. Close it, wait until hidden, and reopen it through the existing user-facing helper before checking the pending action.
  • Details navigation now waits for the existing synthetic assistant transcript in the visible Chat pane, as well as the board iframe. Main Chat has no sidebar data-panel-slot marker, so the readiness check uses the pane owner.
  • Closing Ask OpenClaw changes the content's right margin over 160 ms. Run 39802159545 recorded pointer-down on the Settings link and pointer-up/click off that same, still-connected link five milliseconds later. Wait for the panel to hide and the actual content transition to finish before clicking Settings.

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

Check Result
Publication negative control Closing and waiting for the menu to hide makes the old pending-action lookup time out
Publication browser file 12 passed, 45.75 s; all 12 also passed both full CI attempts
Plugin Ask failure evidence Full CI 39802159545, exact pointer-down/up target shift; no page errors or renderer stall
Plugin Ask exact main-parent replay Passed on 5b8a35f; not classified as inherited
Plugin Ask browser file 9 passed, 50.06 s (19.58 s tests)
Details exact case before added readiness Passed on exact CI main parent f0849a1 and prior PR head; original CI cause not reproduced
Details explicit Chat-readiness case Passed, 2.586 s; 37.04 s run
UI typecheck; focused lint/format Passed
Independent review No actionable P0–P2 findings
Broad coverage ci:full run 39813498898, exact head 5f9a5209ed3a89d111f4976cec5d46bde7132d5e: passed, including UI units, all nine UI E2E shards, and both real-Gateway shards

Production 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 Dashboard timed 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.

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 22, 2026
@clawsweeper

clawsweeper Bot commented Oct 22, 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T15:48:51.393963Z 15f1a60 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete
steipete enabled auto-merge (squash) October 22, 2026 14:40
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 22, 2026
@clawsweeper

clawsweeper Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

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

  • Before: The Publishing… assertion can time out after the branch menu closes.
  • After: The test explicitly reopens the menu before checking that Publishing… is disabled.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-supported test repair with reported browser validation and a corroborating prior CI failure; current-head broad checks are still running.
Proof confidence 🐚 platinum hermit (4/6) This maintainer-authored test-only change reports a failing negative control and a passing focused browser suite; it changes no shipped behavior requiring separate live proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Publication CI can fail because a pending-state assertion observes a dismissed menu.
Reason: The maintainer-authored direction preserves intended UI behavior and removes a corroborated source of false test failures.

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
Reviewed head: 5dcf54730c449897996c9083b47471d95882dec2

Before merge

None.

Findings

None.

Agent review details

How this fits together

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

Technical review

Best 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

  • Pending publication assertions keeps the original intent (0606e31: The publication broker added browser coverage for exact publisher identity, pending state, and terminal outcomes.)
  • Environment publication navigation keeps the original intent (01b890d: Publication controls moved to Environment while existing ownership, consent, and recovery behavior remained authoritative.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 01b890d adds ui/src/e2e/chat-pull-requests.e2e.test.ts:507 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 01b890d9c640; files: ui/src/e2e/chat-pull-requests.e2e.test.ts)

PR surface

Tests +5. Total +5 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 5 0 +5
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 5 0 +5

Labels

Label changes:

  • add P3: This repairs browser-test reliability without changing production publication behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This repairs browser-test reliability without changing production publication behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 22, 2026, 10:49 AM ET / 14:49 UTC.

@steipete
steipete disabled auto-merge October 22, 2026 15:09
@steipete steipete changed the title test(ui): reopen publication menu before pending assertion test(ui): wait for publication and assistant transitions Oct 22, 2026
@steipete steipete changed the title test(ui): wait for publication and assistant transitions test(ui): wait for publication and navigation readiness Oct 22, 2026
@steipete
steipete merged commit 30a24be into main Oct 22, 2026
104 of 107 checks passed
@steipete
steipete deleted the test/publication-menu-reopen branch October 22, 2026 17:00
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 23, 2026
)

* test(ui): reopen publication menu before pending assertion

* test(ui): wait for assistant close before settings navigation

* test(ui): wait for Details conversation readiness
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 ci:full Keep ordinary native-locale CI selection on the next PR run. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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