Community编程与开发github.com

Control UI E2E

控制UI浏览器测试、视觉审查和录制、交互性能审计以及运行检查器证据。

Control UI E2E 是什么?

Control UI E2E 技能是专为AI代理设计的一套全面UI端到端测试流程,涵盖测试证据选择、夹具准备、行为执行和证据交付。它支持Claude Code、Cursor、Codex等平台,通过结构化工作流确保每个行为变化都有命名场景和可检查的证据边界。技能遵循严格的政策引用,包括状态捕获门控、测试执行策略,并提供视觉审查、交互性能审计(自动Chrome追踪)和运行检查器证据捕获等专用子流程。其工件管理机制支持为每次尝试分配独立目录,保留成功与失败结果,并提供超时诊断和分开的保留策略,适用于真实网关测试套件。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/.agents/skills/control-ui-e2e

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Control UI E2E 是做什么的?

工作流程

  1. 选择证据。 使用现有的浏览器E2E流水线进行路由、启动、网关握手和完整用户流程;使用浏览器/单元测试进行隔离渲染逻辑。阅读下方每个与请求结果匹配的分支。新增或修改的错误、空状态和加载状态需遵循状态捕获门控。命名每个状态(包括仅文本变更),并通过实际UI进行捕获。频道通知需使用真实频道分支,而非此UI夹具。 完成: 每个变更的行为都有命名场景和证据边界。
  2. 准备夹具。 复用 ui/src/test-helpers/control-ui-e2e.ts,并使用合成网关数据。为其类型化场景选项扩展缺失的响应。使用已有的依赖安装;保留其他任务所使用的安装。真实网关/提供者凭证需要显式的实时证明授权。遵循测试策略确定执行位置。 完成: 目标流程针对预期源或生产构建运行,且定义了每个必需夹具响应。
  3. 执行行为。 在导航前安装模拟。通过可见控件进行操作,断言渲染结果和相关的网关请求。在重放之前,先解决在产品或夹具所有者处的意外行为。 完成: 每个场景达到其断言结果,或者保留失败并标识未满足的断言。
  4. 交付证据。 应用以下工件规则和所选分支的检查项。分别报告已验证的结果、失败和未测试的状态。 完成: 每个声明的结果都有可检查的证据;剩余的差距已命名。

UI 压力测试

对于大量的布局/组件变更或多状态设计反馈,请在构建压力测试画廊之前阅读视觉证明。小的文本/图标变更可使用集中证明。

视觉证明默认值

对于外观变更、截图、瞬态状态捕获或视频,请阅读视觉证明。外观变更需要审查前后证据;非视觉修复可以仅使用行为断言。

交互性能审计

对于UI缓慢、响应性审计或自动Chrome追踪收集,请在选择构建、夹具和测量边界之前阅读交互性能分析。

运行检查器证据

对于运行/执行/决策证据,请在选择回执之前阅读运行检查器捕获。

工件

  • 使用 createControlUiE2eArtifactDir(scope, parentDir?) 分配目录,每次尝试或独立调用一次。将目录传递给捕获辅助函数;保持不同阶段的文件名以及报告、截图、追踪和视频在一起。
  • 辅助函数负责父目录选择。保留现有的输出控制、门控、视口和录制选项;在最终报告中返回其使用的路径。
  • 保留失败和成功的尝试。审查后仅清理确切拥有的目录;切勿清除共享工件父目录或覆盖先前的证据。
  • 超时诊断使用其现有诊断父目录的新子目录。Mantis保留每次尝试。真实网关、chat-outbox-* 和 chat-attachment-read-lifecycle 套件有独立所有权:在声明回放安全捕获之前,请验证其保留行为。

运行集中测试

使用 package.json 中的当前脚本和测试策略。对于工作树的集中浏览器测试:

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

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills and agent Templates when requested; add Templates; install, verify, update, uninstall, publish, or sync skills.

相关技能