Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Designs minimal integration and E2E tests proving accepted behavior at observable boundaries via Playwright and fixture or service lanes.
48% 91%+43 ptsof test cases passed
Passed 21 of 23 test cases with the skill, and 11 of 23 without it.
This test ran on v9. v12 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
本参考文档以 Playwright 作为默认的浏览器测试框架。若项目选用了不同的框架(Cypress、Selenium 等),可调整具体模式,但证明边界规则保持不变。
本工作流中的 E2E 测试分为两条通道(参见父技能的“测试类型与选择”):
| 通道 | 适用场景 | 证明边界 | 成本 |
|---|---|---|---|
| fixture-e2e | 使用确定性 fixture(模拟后端 / fixture 数据)验证 UI 流程 | 真实浏览器是判定边界;后端行为以 fixture 状态提供 | 在 CI 中配合 fixture 设置运行 |
| service-integration-e2e | 流程正确性依赖真实的跨服务行为(数据持久化、事务一致性、外部契约) | 正在运行的服务边界本身就是判定内容的一部分 | 设置与维护成本更高;仅当该边界能唯一暴露问题时才选用 |
E2E 候选项针对跨越多个页面或需要真实浏览器交互的关键用户流程。应根据验证是否需要真实服务来选择通道。
E2E 候选项是具备以下任一属性的行为,无论约束性产物在何处记录该行为:
| 属性 | 为何构成 E2E 候选项 |
|---|---|
| 跨越多个界面 | 承诺的结果只有在经过一系列界面跳转后才可观测 |
| 需要真实浏览器 | 导航、cookie、存储或实际 DOM 渲染决定了结果 |
| 状态只能通过导航到达 | 无法在进程内产生的错误、空状态或加载状态 |
| 交互依赖浏览器 | 拖放、键盘导航或响应式行为 |
将约束性产物映射到这些属性;本技能不指定具体的产物章节名称。
包含:
以下情况改用集成测试:
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.