← 返回 Skills 市场
e2e-testing
作者
Bovin Phang
· GitHub ↗
· v2.5.0
· MIT-0
30
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install fec-e2e-testing
功能描述
Use when creating, maintaining, debugging, or reviewing real-browser end-to-end tests with Playwright or Cypress, including Page Object models, CI artifacts,...
使用说明 (SKILL.md)
E2E 测试规范
Purpose
用真实浏览器验证关键用户旅程,发现单元测试无法覆盖的集成风险。
Procedure
- 明确关键旅程:登录、购买、创建、搜索、权限、支付等跨页面流程优先;若只是选择测试层级,先做测试分层规划。
- 新项目优先 Playwright;已有 Cypress 项目沿用 Cypress,不为迁移而迁移。
- 用 Page Object 或 fixtures 封装登录、页面定位器和共享数据,spec 中避免裸选择器。
- 断言用户可见结果,依赖 Locator 自动等待、网络响应或可见状态,不使用固定 sleep。
- CI 必须上传 HTML report、截图、trace 或视频;flaky 用例要隔离、复现、标注来源并关联 issue。
- 调试失败时先读 trace、console、network 和截图,再改测试;不要把真实产品缺陷误判成 flaky。
- 对关键浏览器能力、支付、权限、上传和实时通信流程,记录测试环境、种子数据和清理策略。
- 测试数据必须可重复:优先使用 API seed、数据库 fixture、测试账号或 mock 服务;随机数据需带唯一前缀并在 teardown 清理。
Detailed References
- Load references/playwright-patterns.md for directory layout, Page Object, spec structure, config, flaky debugging, and artifact examples.
- Load references/e2e-advanced.md when the task needs CI examples, Markdown report templates, Web3/wallet flows, high-risk financial flows, or visual regression setup.
Constraints
- 禁止依赖
sleep/ 固定setTimeout作为主要同步手段。 - 不在生产环境跑真实 E2E。
- 避免在 E2E 中断言组件内部像素级样式;跨页面截图/视觉回归仅覆盖用户旅程中的关键页面状态。
- 失败必须能靠截图、trace 或视频定位。
- 组件内部契约测试分流到组件测试 workflow。
- 不把不稳定等待、随机数据或依赖测试顺序带入 CI。
- 不把重试次数当作 flaky 治理;重试只能保留证据,根因仍需定位。
Expected Output
关键用户旅程有稳定 E2E 覆盖,失败产物可定位问题,CI 中报告和 trace 可下载;flaky 用例有复现命令、隔离策略和后续 issue。
安全使用建议
Install only if you want agent guidance for Playwright or Cypress E2E testing. For login, payment, wallet, or financial flows, keep tests on staging or mock environments, avoid real production transactions, and manage any test credentials through your normal secrets process.
能力标签
能力评估
Purpose & Capability
The skill consistently describes Playwright/Cypress end-to-end testing workflows, including CI artifacts, Page Objects, flaky-test debugging, visual regression, and safe handling of login, payment, and wallet test scenarios.
Instruction Scope
Instructions are scoped to test design and examples. Higher-risk examples explicitly recommend staging, mocks, or skipping production transactions rather than using real funds or production environments.
Install Mechanism
The package contains markdown and JSON metadata only, with no executable scripts, dependencies, install hooks, or bundled code that would run automatically.
Credentials
E2E testing naturally involves browser automation, local dev servers, CI artifacts, and possible test credentials, but the artifact frames these as user-controlled testing activities and discourages production execution.
Persistence & Privilege
No persistence mechanism, background worker, privilege escalation, credential harvesting, or broad local indexing behavior is present in the artifacts.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install fec-e2e-testing - 安装完成后,直接呼叫该 Skill 的名称或使用
/fec-e2e-testing触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.5.0
- Updated skill name to "fec-e2e-testing" and clarified triggers and usage scenarios in the description.
- Major rewrite of E2E testing guidelines for clarity and focus on real-browser user journey validation.
- Added specific procedures for test planning, Page Object usage, artifact handling, debugging, and data management.
- Provided direction to new reference files for advanced usage and directory patterns.
- Strengthened constraints around flakiness, data isolation, artifact retention, and proper test responsibility boundaries.
- Newly added supporting documentation: LICENSE, README.md, metadata.json, package.json, and two advanced reference markdowns; removed skill-card.md.
元数据
常见问题
e2e-testing 是什么?
Use when creating, maintaining, debugging, or reviewing real-browser end-to-end tests with Playwright or Cypress, including Page Object models, CI artifacts,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 30 次。
如何安装 e2e-testing?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install fec-e2e-testing」即可一键安装,无需额外配置。
e2e-testing 是免费的吗?
是的,e2e-testing 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
e2e-testing 支持哪些平台?
e2e-testing 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 e2e-testing?
由 Bovin Phang(@bovinphang)开发并维护,当前版本 v2.5.0。
推荐 Skills