Skip to content

test: follow Template previews into the review dialog - #202198

Merged
vincentkoc merged 2 commits into
mainfrom
fix-template-review-dialog-fixtures-20261120
Nov 20, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
fix-template-review-dialog-fixtures-20261120

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The chat Template browser fixtures still expect the detailed review inline after it moved into the Preview Template dialog. The hosted source fixture times out before reaching its hover and bootstrap-readiness assertions.

User Impact

No product behavior changes. The fixtures follow the compact Publish Template card and its explicit preview dialog while retaining publication, clipboard, navigation, contrast, and responsive-layout coverage.

Why This Change Was Made

Open Preview for the detailed review assertions, then follow publication status and links on the compact card. Replace its obsolete fixed preview height and removed status tooltip with the current card bounds and submission link. Wait for the modal entry animation before measuring its unchanged dimensions, and advance the browser clock through the existing 30-second publication poll.

Evidence

Unrelated required CI failure

Exact-head CI run 44665765068, attempt 1 completed with 16 successful and 30 skipped jobs. The sole substantive failure is the model-picker browser job: keyCode229 ArrowUp expected two model rows but found one after clicking the provider rail, before dispatching the keyboard event. Its aggregate gate failed accordingly.

The tested merge f13bab7942c706c5533833abe43bc0c54318d143 has parents 4718da87f4e5f17fb83a604e5b97c9aa9ab71e26 and this PR head 5735c89e41da19924e1a29effa479c22d898e13c. Its delta from tested main is exactly these two Template E2E files; the picker test, owners, styles, configuration and dependency inputs are unchanged. Maintainer-reviewed attribution qualifies this as unrelated inherited CI under the native exception route. The provider-selection/click-settlement cause remains unlocalized; this PR does not fix it or claim that CI passed. No picker rerun or assertion change was made.

@vincentkoc vincentkoc self-assigned this Nov 20, 2026
@clawsweeper

clawsweeper Bot commented Nov 20, 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.

@vincentkoc
vincentkoc marked this pull request as ready for review November 20, 2026 03:09
@vincentkoc
vincentkoc enabled auto-merge (squash) November 20, 2026 03:11
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 20, 2026
@clawsweeper

clawsweeper Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR updates Template browser tests to open the Preview dialog and follow publication status on the compact chat card.

Example: The browser fixture reviews the Research Brief Template.

  • Before: It waits for inline review content that now lives inside a closed dialog and times out.
  • After: It clicks Preview, checks the dialog contents, and follows Pending and Published on the compact card.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused and source-consistent test repair with browser-harness evidence; the separate failed required UI check remains unattributed.
Proof confidence 🦐 gold shrimp (3/6) No production behavior changes; the body reports macOS Chromium coverage across the existing scenarios, and the exact-head hosted browser check passed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Obsolete Template fixtures time out before exercising their intended browser assertions.
Reason: Restores useful existing coverage for an intentional maintainer-owned UI change without adding production machinery or changing defaults.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR repairs obsolete browser fixtures, and no introduced correctness or security defect was found; the failed UI check still needs attribution.

Priority: P3
Reviewed head: 5735c89e41da19924e1a29effa479c22d898e13c

Before merge

None.

Findings

None.

Agent review details

How this fits together

Control UI browser fixtures render synthetic Template drafts through the chat interface and check preview navigation, readiness, publication presentation, clipboard behavior, contrast, and layout.

flowchart LR
  A[Synthetic Gateway responses] --> B[Chat transcript]
  B --> C[Compact Template card]
  C --> D[Preview dialog]
  D --> E[Read-only package review]
  C --> F[Publication status and links]
Loading

Technical review

Best possible solution:

Retain this focused fixture update and resolve the separate failed UI check through the existing CI workflow.

Do we have a high-confidence way to reproduce the issue?

Hosted baseline annotations confirm the obsolete-selector timeouts, and current source places the required content behind Preview; no target code was executed during this review.

Is this the best way to solve the issue?

The smallest complete fix is to follow the existing card and dialog owners, preserve the distinct assertions, settle the entry animation, and advance the existing publication timer, as this diff does.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 98d43aa38ad8.

Provenance checked

  • Detailed review and publication assertions keeps the original intent (c1ecbca: The original inline-review feature established package inspection, explicit publication, clipboard, and responsive browser coverage.)
  • Compact card and explicit Preview keeps the original intent (d66f296: Keep the conversation compact while opening the same reviewed archive on demand and checking pending publication every 30 seconds.)
  • Source-only readiness and contrast fixtures keeps the original intent (55029d4: Keep source-import readiness cases separate from production-asset browser validation; the subsequent contrast case protects custom-theme readability.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Patrick Erichsen: Raw commit d66f296 adds ui/src/pages/templates/creator-review-view.tsx:120 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d66f296eae1e; files: ui/src/pages/templates/creator-review-view.tsx)
  • Vincent Koc: Raw commit 55029d4 adds ui/src/e2e/template-chat-review-source.e2e.test.ts:104 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 55029d41d506; files: ui/src/e2e/template-chat-review-source.e2e.test.ts)

PR surface

Tests +13. Total +13 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 48 35 +13
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 48 35 +13

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P3: This repairs browser-test coverage without changing production behavior.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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 coverage without changing production behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Establish the cause of the model-picker failure in the exact-head UI check.

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 November 19, 2026, 10:23 PM ET / November 20, 2026, 03:23 UTC.

@vincentkoc
vincentkoc disabled auto-merge November 20, 2026 03:25
@vincentkoc
vincentkoc merged commit b34b667 into main Nov 20, 2026
144 of 148 checks passed
@vincentkoc
vincentkoc deleted the fix-template-review-dialog-fixtures-20261120 branch November 20, 2026 03:26
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 20, 2026
* test: follow Template previews into the review dialog

* test: settle Template preview and publication clocks
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 clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant