← 返回列表
全部 Skill›测试与安全 Testing & Security›control-ui-e2e

control-ui-e2e

作者 @openclaw · 语言 en
Use when testing, fixing, or extending the OpenClaw Control UI GUI with Vitest + Playwright end-to-end checks, mocked Gateway WebSocket flows, mocked dashboard runs, screenshots/videos, or agent-verifiable browser proof.
测试与安全 Testing & Security测试通用执行命令访问网络待翻译
最近源活动
2026-11-21 23:32
检测 SKILL.md 语言
en
星标 ★
394,675
分支 Fork
82,939
安装选项
提示
指令
使用 AI 助手安装
将下面的提示复制到你正在使用的 AI 助手中。
下载完整 Skill 目录(含全部配套文件)。 下载压缩包 ↓
SKILL.md 原文预览

Control UI E2E

Workflow

  1. Select proof. Use the existing browser E2E lane for routing, boot, Gateway

handshake, and complete user flows; use browser/unit tests for isolated render

logic. Read each branch below that matches the requested outcome.

Done: every changed behavior has a named scenario and proof boundary.

  1. Prepare fixtures. Reuse ui/src/test-helpers/control-ui-e2e.ts with synthetic

Gateway data. Extend its typed scenario options for missing responses. Use the

existing dependency installation; preserve installs used by other jobs.

Real Gateway/provider credentials require explicit live-proof authorization.

Follow testing policy for execution placement.

Done: the target flow runs against the intended source or production build

and each required fixture response is defined.

  1. Exercise behavior. Install the mock before navigation. Act through visible

controls and assert both the rendered outcome and relevant Gateway requests.

Resolve unexpected behavior at the product or fixture owner before replaying.

Done: each scenario reaches its asserted outcome, or has a retained failure

identifying the unmet assertion.

  1. Deliver evidence. Apply the artifact rules below and the selected branch's

checks. Report verified results, failures, and untested states separately.

Done: every claimed result has inspectable evidence; remaining gaps are named.

UI Stress Test

For substantial layout/component changes or multi-state design feedback, read

visual proof before building the

stress-test gallery. Small copy/icon changes may use focused proof.

Visual Proof Default

For appearance changes, screenshots, transient-state capture, or video, read

visual proof. Appearance changes require inspected

before/after evidence; behavior assertions alone can suffice for nonvisual fixes.

Interaction Performance Audits

For UI slowness, responsiveness audits, or automatic Chrome trace collection,

read interaction profiling before

choosing the build, fixtures, and measurement boundaries.

Run Inspector evidence

For run/execution/decision evidence, read

Run Inspector capture before selecting a receipt.

Artifacts

  • Allocate with createControlUiE2eArtifactDir(scope, parentDir?), once per attempt

or standalone invocation. Pass the directory to capture helpers; keep distinct

stage filenames and the report, screenshots, traces, and video together.

  • The helper owns parent selection. Preserve existing output controls, gates,

viewport, and recording options; use its returned path in the final report.

  • Retain failed and successful attempts. Clean up only exact owned directories

after review; never clear shared artifact parents or overwrite earlier proof.

  • Timeout diagnostics use fresh children of their existing diagnostic parent.

Mantis retains every attempt. Real-Gateway, chat-outbox-*, and

chat-attachment-read-lifecycle suites have separate owners: verify their

retention behavior before claiming replay-safe capture.

Running a focused test

Use the current scripts in package.json and

testing policy. For a worktree's focused browser test:

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
评论
Oopenclaw
openclaw
openclaw/openclaw
查看 GitHub 仓库 查看作者的其他 Skill
来源信息
作者@openclaw
所属大类测试与安全 Testing & Security / 测试
国内可用性通用
最近源活动2026-11-21 23:32
风险提示执行命令、访问网络
提示:风险标签为程序静态扫描结果,仅作提示,不代表安全认证。安装前请阅读 SKILL.md 及其引用的脚本、权限,自行判断是否可信。