用于为 OpenClaw 控制界面编写、调试与扩展端到端自动化测试流程。
该技能材料本质上是面向 OpenClaw Control UI 的本地 E2E 测试说明与提示词,未声明密钥或远程端点,且来源为可审计的开源 GitHub 仓库并具备很高社区采用度。整体看风险较低,主要需注意其文档中涉及本地测试进程、浏览器驱动与本地制品目录写入属于测试流程说明,而非额外红旗。
材料明确写明无需密钥/环境变量,并且 README 还强调不要使用真实 provider key、频道凭证或真实 Gateway;未见要求收集、存储或外发敏感凭证的设计。
未声明任何远程 host/端点;文档描述的是本地 Vite UI、mock Gateway WebSocket 与本地浏览器验证流程,未见将用户数据发送到未知或无关外部服务的事实。
系统检查项已标注为 prompt-only;README 中虽给出 node/pnpm/Vitest/Playwright 等本地测试命令,但这是供开发者参考的测试说明,不代表该技能本身自带可执行权限或隐式执行能力。
文档提到将截图、视频等测试制品写入本地 `.artifacts/control-ui-e2e/...` 目录,但未声明读取广泛本地敏感数据、访问系统级资源或申请超出 GUI 测试所需的数据权限。
来源为 GitHub 开源仓库,系统检查项标注 open-source,且社区采用度极高(约 37.7 万 star),这显著提升可审计性与可信度;许可证未声明、维护状态未知是轻微不确定项,但不足以单独构成高风险红旗。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "control-ui-e2e" 技能: 1. 下载 https://raw.githubusercontent.com/openclaw/openclaw/main/.agents/skills/control-ui-e2e/SKILL.md 2. 保存为 ~/.claude/skills/control-ui-e2e/SKILL.md 3. 装好后重载技能,告诉我可以用了
请为 OpenClaw Control UI 的登录、仪表盘加载和任务启动流程编写 Vitest + Playwright 端到端测试,包含必要的 mock、等待条件和断言。
生成可运行的端到端测试代码,覆盖关键交互、状态校验与稳定性处理。
帮我为 OpenClaw Control UI 构建 mocked Gateway WebSocket 流程,模拟连接成功、任务运行中、任务完成和异常断开的场景,并补齐对应测试。
输出带有事件模拟逻辑的测试实现,验证界面在不同实时状态下的响应。
请扩展现有 OpenClaw Control UI 的 Playwright 测试,在失败时自动保存截图和视频,并输出可供代理验证的浏览器执行证据说明。
返回测试增强方案与代码,包含截图/录像配置及可核验的执行结果说明。
Use this for Control UI changes that need a real browser flow with deterministic Gateway data.
ui/src/**/*.e2e.test.ts for full GUI flows.ui/src/test-helpers/control-ui-e2e.ts to start the Vite Control UI and install a mocked Gateway WebSocket..browser.test.ts or 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.node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/ui/e2e/chat-flow.e2e.test.ts
pnpm test:ui:e2e
If dependencies are missing in a Codex worktree, install once with pnpm install; for broad GUI proof or dependency-heavy checks, use Testbox/Crabbox instead of running a wide local pnpm lane.
When running mocked Control UI/dashboard validation for a user-facing feature, produce visual proof by default unless the user explicitly opts out.
pnpm dev:ui:mock -- --port <port>.browser.newContext({ recordVideo: { dir, size }, viewport }), page.screenshot({ path }), and close the context before reporting the video path..artifacts/control-ui-e2e/<short-feature-name>/ or another clearly named local temp directory, and report the absolute paths in the final answer.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.
When recording an already-running mocked Control UI URL, use a temporary Playwright script or playwright test spec and keep the recording flow focused:
data-* selectors or user-facing role selectors, and wait on asserted states instead of relying on fixed sleeps.sessions.list was called with the expected search, offset, and limit..artifacts/control-ui-e2e/<feature>/; do not commit it.通过 OpenAI 音频转写接口,将语音录音快速转成文本或说话人分段结果。
帮助你用 node inspect 与性能分析工具定位 Node.js 调试与性能问题。
使用 sherpa-onnx 在本地离线将文本快速转换为语音,无需云服务。
帮助你自动控制网页流程,处理多步骤操作、登录检查与标签页管理。
快速生成概念、架构、流程与白板图,支持 SVG、HTML 或 Excalidraw 格式
帮助开发与运维团队运行、排查并总结 OpenClaw 发布 CI 与发布前检查流程
使用 iwsdk CLI 针对 poke 示例测试 UI 系统行为与兼容性。
通过屏幕识别与键鼠控制自动操作桌面应用,执行测试、办公与重复流程。
帮助开发者选择并执行 OpenClaw 测试、CI 校验与发布验证的最优路径。
通过图形界面自动控制本机鼠标、键盘与屏幕,执行桌面操作流程。
帮助你运行、观察、调试并扩展 OpenClaw 的 QA 场景与测试产物
让 AI 全面操控浏览器执行网页自动化、测试取证与页面检查任务