control-ui-e2e
Skill573 starsChanged 35 days agoMITView on GitHub
Use when designing, testing, fixing, or extending the OpenClaw Control UI GUI, including UI stress-test galleries with feedback inputs, Vitest + Playwright end-to-end checks, mocked Gateway flows, screenshots/videos, or agent-verifiable browser proof.
11 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- OpenClawAndroid/openclaw-android-assistantword for word, first seen Oct 17, 2026
- bighamx/openclaw-android-node-apktheir own version, first seen Oct 9, 2026
- molt-bot/clawdbotword for word, first seen Oct 8, 2026
- steipete/warelaytheir own version, first seen Oct 8, 2026
- moltbot/clawdbottheir own version, first seen Oct 8, 2026
- steipete/clawdistheir own version, first seen Oct 8, 2026
Other versions11 projects use a version of this.
Word for word · 2
- molt-bot/clawdbot★ 391k100% same
- OpenClawAndroid/openclaw-android-assistant★ 556100% same
Edited · 2
- clawsouls/soulclaw★ 971% same
- supermansuper563-ops/openclaw-workbench★ 071% same
Wrote their own version · 7
- moltbot/clawdbot★ 394ksame name
- steipete/warelay★ 394ksame name
- steipete/clawdis★ 394ksame name
- moltbot/moltbot★ 394ksame name
- clawdbot/clawdbot★ 394ksame name
- openclaw/openclaw★ 394ksame name
- bighamx/openclaw-android-node-apk★ 57same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository107 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- extensions/AGENTS.mdAGENTS.md
- openclaw-android/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- test/AGENTS.mdAGENTS.md
- ui/AGENTS.mdAGENTS.md
- agent-transcriptSkill
- auto-qaSkill
- autoreviewSkill
- channel-message-flowsSkill
- clawdtributorSkill
- claw-scoreSkill
- clawsweeperSkill
- codex-app-paritySkill
- crabboxSkill
- deslopSkill
- discord-clawdSkill
- discord-e2eSkill
- discord-user-postSkill
- discrawlSkill
- gitcrawlSkill
- graincrawlSkill
- notcrawlSkill
- openclaw-changelog-updateSkill
- openclaw-ci-limitsSkill
- openclaw-debuggingSkill
- openclaw-docker-e2e-authoringSkill
- openclaw-ghsa-maintainerSkill
- openclaw-live-updaterSkill
- openclaw-parallels-smokeSkill
- openclaw-pr-maintainerSkill
- openclaw-qa-testingSkill
- openclaw-refactor-docsSkill
- openclaw-release-validationSkill
- openclaw-repair-sweepSkill
- openclaw-secret-scanning-maintainerSkill
- openclaw-test-heap-leaksSkill
- openclaw-testingSkill
- openclaw-test-performanceSkill
- openclaw-updateSkill
- parallels-discord-roundtripSkill
- proof-videoSkill
- prototype-openclaw-tuiSkill
- release-openclaw-announcementSkill
- release-openclaw-ciSkill
- release-openclaw-macSkill
- release-openclaw-maintainerSkill
- release-openclaw-plugin-testingSkill
- security-triageSkill
- slack-e2eSkill
- slacrawlSkill
- tag-duplicate-prs-issuesSkill
- technical-documentationSkill
- telegram-e2e-userbotSkill
- test-auditSkill
- update-team-serverSkill
- verify-releaseSkill
- 1passwordSkill
- apple-notesSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. 0 are common, 10 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this for Control UI design feedback and real browser flows with deterministic Gateway data.
- Distinctive: line 14
Use it when changing layouts, interactions, or components with multiple states.
- Distinctive: line 35
Before requesting feedback, inspect the rendered examples at relevant viewport sizes and verify that feedback survives a refresh and …
- Very specific: line 45
Use ui/src//*.e2e.test.ts for full GUI flows.
- Very specific: line 46
Use ui/src/test-helpers/control-ui-e2e.ts to start the Vite Control UI and install a mocked Gateway WebSocket.
- Distinctive: line 47
Keep scenarios deterministic.
- Very specific: line 48
Prefer existing .browser.test.ts or unit tests for narrow rendering logic.
- Distinctive: line 58
Run the whole local lane in a normal checkout:
- Distinctive: line 64
Use an existing ready dependency installation or a prepared normal checkout.
- Distinctive: line 75
Keep the Vitest E2E assertions deterministic.
- Very specific: line 81
After or alongside the focused E2E test, run the mocked Control UI app when available, for example pnpm dev:ui:mock -- --port <port>.
- Very specific: line 84
Use browser.newContext({ recordVideo: { dir, size }, viewport }), page.screenshot({ path }), and close the context before reporting the …
- Distinctive: line 90
Treat recording as validation, not only demo capture.
- Distinctive: line 91
If visual proof is blocked, state the exact blocker and still report the textual E2E evidence.
- Very specific: line 95
Start the app server, install the mock before page.goto, then assert both Gateway traffic and visible UI:
- Very specific: line 117
Use withControlUiRunInspector from ui/src/test-helpers/control-ui-run-inspector.ts for collection.
- Very specific: line 142
When recording an already-running mocked Control UI URL, use a temporary Playwright script or playwright test spec and keep the recording …
- Distinctive: line 146
Use short sleeps only after assertions to make the captured video readable.
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Control UI E2E
Use this for Control UI design feedback and real browser flows with deterministic Gateway data.
UI Stress Test
For substantial UI changes, build a local HTML stress-test gallery early so the user can compare meaningful states and give feedback against concrete examples. Use it when changing layouts, interactions, or components with multiple states; small copy or icon edits can skip it when a gallery adds no useful comparison.
- Derive examples from the affected components and their data contracts. Cover the relevant normal, loading, empty, error, unavailable, permission, selected, and expanded states, plus long text or dense content where they stress the layout. Show mutually exclusive states separately; label proposed states that the current implementation does not support.
- Build one browser-openable HTML overview with stable example IDs, short state labels, and enough context to understand each example. Prefer real components and deterministic mock fixtures. Label static or approximate renderings and link to the running UI for interactions they cannot reproduce. Keep generated galleries in task-owned artifact storage rather than committing them by default.
- Give every example a labeled feedback input. Persist feedback locally across refreshes using a gallery-specific storage key and stable example IDs. Include a Copy feedback action that exports the example IDs, state labels, and comments as Markdown or plain text for the user to return to the conversation.
- Open the gallery in the available preview browser and share its URL or file path. Keep the same gallery and example IDs during iteration, preserving existing comments as examples change. Apply the user's feedback to both the gallery and the implementation so they remain comparable.
- Before requesting feedback, inspect the rendered examples at relevant viewport sizes and verify that feedback survives a refresh and exports with the correct example labels. Report any unsupported states or preview limitations.
The gallery supports design review; it does not replace focused behavior tests or inspected before/after proof from the running UI. Preserve final proof using the fresh capture directories described below, separately from the evolving gallery.
Test Shape
- Use
ui/src/**/*.e2e.test.tsfor full GUI flows. - Use
ui/src/test-helpers/control-ui-e2e.tsto start the Vite Control UI and install a mocked Gateway WebSocket. - Keep scenarios deterministic. Do not use live provider keys, real channel credentials, or a real Gateway unless the user explicitly asks for live proof.
- Prefer existing
.browser.test.tsor unit tests for narrow rendering logic; use this E2E lane when the proof should cover routing, app boot, Gateway handshake, requests, and visible UI behavior together.
Commands
- Target one E2E test in a Codex worktree:
node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-flow.messaging.e2e.test.ts- Run the whole local lane in a normal checkout:
pnpm test:ui:e2eUse an existing ready dependency installation or a prepared normal checkout;
do not reconcile a shared install while other jobs use it. Follow
$openclaw-testing: trusted development proof may run locally, and remote
proof needs a browser/platform, clean-environment, or source-isolation reason.
Visual Proof Default
For appearance changes, capture inspected before/after visual evidence. For other behavior, use the clearest appropriate boundary proof; a video and a screenshot set are not mandatory when assertions already demonstrate the change.
- Keep the Vitest E2E assertions deterministic; do not commit generated screenshots or videos.
- The shared suite disables Chromium partial rasterization and GPU rasterization to avoid observed paint-history-dependent edge pixels. Exact repeat comparisons are still required before claiming reproducibility.
- For transient states such as Saved, install
page.clockbefore the fixture, pause it withpauseVirtualClock, and advance only the fixture work needed to enter that state.setFixedTimealone does not pause timers. Capture readiness uses native layout delivery without advancing the fixture clock. - For stills, use
takeControlUiScreenshotFramefromui/src/test-helpers/control-ui-e2e-screenshot.tswith explicit semantic content andanimations: "disabled". Pass viewport changes and the intended scroll target through itsviewport/scrollTooptions; it verifies retained centering, viewport/scroll-clip intersection, and settled layout, fonts, and visible images. - Pass all related element locators in
elements, then save the returned page PNG and crops from that single frame. Crops enclose fractional bounds in measured PNG pixels; dimensions and unchanged bounds are asserted. Do not combine separate page and locator screenshots as same-frame evidence. - The default current-frame mode and existing viewport/element helpers preserve recording and sampled animation behavior. Static preparation stays active through bounds measurement and the unclipped capture; full-page proofs must fit the viewport-frame dimensions.
- After or alongside the focused E2E test, run the mocked Control UI app when available, for example
pnpm dev:ui:mock -- --port <port>. - Drive Chromium with Playwright against the local mock URL. Capture the states needed to demonstrate the change, using screenshots or a short video.
- Use
browser.newContext({ recordVideo: { dir, size }, viewport }),page.screenshot({ path }), and close the context before reporting the video path. - The session-host command-state proof uses viewport-only captures, verified with Playwright 1.62.1 and Chrome 151.0.7922.34 (Linux real Gateway; macOS arm64 synthetic reproduction). Other recording owners have not been migrated or certified by this fix; verify their required screenshot content and finalized video separately. See the verified capture path and upstream limitation.
- Allocate retained proof with
createControlUiE2eArtifactDir(scope, parentDir?)fromui/src/test-helpers/control-ui-e2e-artifacts.ts. Each call atomically creates a fresh directory and logs its actual path. An explicit parent wins, then the trimmed existingOPENCLAW_UI_E2E_ARTIFACT_DIR, then the repository's.artifacts/control-ui-e2eparent. Existing custom output controls select parents; do not add or rewrite env vars to enable capture. - Allocate during the test/scenario or
beforeEach, once per attempt; standalone scripts allocate once per invocation. Pass the owner explicitly to shared capture helpers. Keep the original gates, feature/stage names, viewports, waits, and recording options. Use distinct filenames for distinct stages and keep screenshots, reports, and video together. - Retain successful and failed evidence. Report actual allocated paths, including relocated filename overrides. Manually delete only exact owned directories after review; never clear shared parents before a replay. Disposable build/media fixtures and owned temporary raw video may keep their cleanup. New synthetic captures do not recover overwritten evidence.
- Timeout diagnostics use fresh children beneath their existing diagnostic parent. Mantis retains every capture attempt under an invocation-owned directory and refuses to overwrite reports. Real-Gateway suites,
chat-outbox-*, andchat-attachment-read-lifecycleremain separate owners; coordinate before claiming replay-safe retention there. - Treat recording as validation, not only demo capture. If the recorder fails or shows surprising behavior, stop, fix the behavior, add or update a regression test, then rerecord.
- If visual proof is blocked, state the exact blocker and still report the textual E2E evidence.
Mock Pattern
Start the app server, install the mock before page.goto, then assert both Gateway traffic and visible UI:
const server = await startControlUiE2eServer();
const page = await context.newPage();
const gateway = await installMockGateway(page, {
historyMessages: [{ role: "assistant", content: [{ type: "text", text: "Ready." }] }],
});
await page.goto(`${server.baseUrl}chat`);
await page.locator(".agent-chat__composer-combobox textarea").fill("hello");
await page.getByRole("button", { name: "Send message" }).click();
const request = await gateway.waitForRequest("chat.send");
await gateway.emitChatFinal({ runId: String(request.params.idempotencyKey), text: "Done." });
await page.getByText("Done.").waitFor();Extend installMockGateway with typed scenario options or method responses when a new flow needs more Gateway surface.
Run Inspector evidence
Use withControlUiRunInspector from ui/src/test-helpers/control-ui-run-inspector.ts
for collection. It owns a separate page, closes it on success or failure, and leaves
the caller's Chat page and unsent draft in place. Use preparePage for a mock
Gateway or the campaign's existing per-tab authentication setup; a shared browser
context does not copy another tab's session-storage token.
The helper uses RunInspectorSelector and activityRunInspectorSelectorHref from
the rendered component's model, including a selected receipt's decision cursor.
The rendered panel's data-run-id and data-execution-id identify the returned
present identity, not just the requested URL. The selected detail's
data-receipt-selector-id is DecisionReceiptDisplayV1.selectorId. Missing or
ambiguous identity and missing selected receipts must not be treated as matches.
These decision selectors are separate from the optional terminal transcript key
agent.wait.terminalReceipt.assistantTranscriptIdempotencyKey; never manufacture
that key from a DOM selector or history row, or claim its absence is repaired by
Inspector evidence. For sidebar run state, the current accessible label is
Active run, not Running.
Standalone Recording
For narrated captions, eased target zooms, or fast-forwarded pauses, use the proof-video dev skill. Its standalone template records raw evidence plus a cue sidecar and renders a captioned MP4 with system ffmpeg; keep the raw capture and attach the inspected polished video.
When recording an already-running mocked Control UI URL, use a temporary Playwright script or playwright test spec and keep the recording flow focused:
- Open the mock URL, interact through stable
data-*selectors or user-facing role selectors, and wait on asserted states instead of relying on fixed sleeps. - Assert both visible UI state and mocked Gateway traffic for request-driven flows. For example, verify the expected count/row is visible and that
sessions.listwas called with the expectedsearch,offset, andlimit. - Use short sleeps only after assertions to make the captured video readable.
- Store the generated video in the invocation's fresh allocated directory; do not commit it or remove older captures.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

