Token导航 LogoToken导航

Agent Skill · 开发

testing-e2e(测试端到端)

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

testing-e2e 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描有提醒项,按安装量在开发类的 21,746 个 Skill 里排第 12,041。

总安装 1,467周安装 63GitHub Stars 161下载 514核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:testing-e2e(测试端到端)
来源仓库:https://github.com/yonatangross/orchestkit
仓库路径:skills/testing-e2e
安装命令:
npx skills add https://github.com/yonatangross/orchestkit --skill testing-e2e
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/yonatangross/orchestkit --skill testing-e2e

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

testing-e2e 用于辅助测试设计、自动化测试、用例整理和回归验证。适合编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器服务时应区分本地模拟与生产环境。建议在测试环境中验证后再部署到生产系统。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/testing-e2e

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/yonatangross/orchestkit --skill testing-e2e;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

testing-e2e 怎么安装?

在终端执行 npx skills add https://github.com/yonatangross/orchestkit --skill testing-e2e。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

testing-e2e 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

testing-e2e 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

testing-e2e 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

testing-e2e 用的人多吗?

公开数据是累计安装 1,467 次,近一周安装 63 次,下载 514 次,GitHub 161 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

testing-e2e 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
testing-e2e

测试端到端 · 本页

1,467161操作浏览器未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

E2E Testing Patterns

End-to-end testing with Playwright 1.59+, visual regression, accessibility, and AI agent workflows.

Quick Reference

CategoryRulesImpactWhen to Use
emulate Backendsrules/emulate-e2e.mdHIGHFIRST CHOICE — deterministic API backends for E2E
Playwright Corerules/e2e-playwright.mdHIGHSemantic locators, auto-wait, flaky detection
Page Objectsrules/e2e-page-objects.mdHIGHEncapsulate page interactions, visual regression
AI Agentsrules/e2e-ai-agents.mdHIGHPlanner/Generator/Healer, init-agents
A11y Playwrightrules/a11y-playwright.mdMEDIUMFull-page axe-core scanning with WCAG 2.2 AA
A11y CI/CDrules/a11y-testing.mdMEDIUMCI gates, jest-axe unit tests, PR blocking
End-to-End Typesrules/validation-end-to-end.mdHIGHtRPC, Prisma, Pydantic type safety

Total: 7 rules, 4 references, 3 checklists, 3 examples, 1 script

emulate Backends

For E2E tests that interact with external APIs (GitHub, Vercel, Google), use emulate as the backend instead of hitting real APIs. This eliminates flakiness from rate limits, network issues, and non-deterministic data.

ApproachResult
emulate backends (FIRST CHOICE)Deterministic, fast, CI-friendly
Real APIsFlaky, rate-limited, slow
MSW/Nock interceptsNo state machines, manual response management

Key features: seed config for reproducible data, per-worker port isolation for parallel Playwright, full state machine transitions.

See rules/emulate-e2e.md for patterns, CI configuration, and per-worker isolation fixtures.


Playwright Quick Start

import { test, expect } from '@playwright/test';

test('user can complete checkout', async ({ page }) => {
  await page.goto('/products');
  await page.getByRole('button', { name: 'Add to cart' }).click();
  await page.getByRole('link', { name: 'Checkout' }).click();
  await page.getByLabel('Email').fill('test@example.com');
  await page.getByRole('button', { name: 'Submit' }).click();
  await expect(page.getByRole('heading', { name: 'Order confirmed' })).toBeVisible();
});

Locator Priority: getByRole() > getByLabel() > getByPlaceholder() > getByTestId()

Playwright Core

Semantic locator patterns and best practices for resilient tests.

RuleFileKey Pattern
Playwright E2Erules/e2e-playwright.mdSemantic locators, auto-wait, new 1.58+ features

Anti-patterns (FORBIDDEN):

  • Hardcoded waits: await page.waitForTimeout(2000)
  • CSS selectors for interactions: await page.click('.submit-btn')
  • XPath locators

Removed in 1.58/1.59 — do NOT use:

  • _react=ComponentName[prop=value] and _vue=... component selector engines — removed in 1.58
  • :light selector suffix — removed
  • launch({devtools: true}) option — removed; use args: ['--auto-open-devtools-for-tabs']

Page Objects

Encapsulate page interactions into reusable classes.

RuleFileKey Pattern
Page Object Modelrules/e2e-page-objects.mdLocators in constructor, action methods, assertion methods
const checkout = new CheckoutPage(page);
await checkout.fillEmail('test@example.com');
await checkout.submit();
await checkout.expectConfirmation();

AI Agents

Playwright 1.59+ AI agent framework for test planning, generation, and self-healing. Includes a token-efficient CLI mode designed for coding agents — minimal output, structured responses, reduced context overhead.

RuleFileKey Pattern
AI Agentsrules/e2e-ai-agents.mdPlanner, Generator, Healer workflow
npx playwright init-agents --loop=claude    # For Claude Code

Token-efficient CLI mode (1.58+): Playwright ships a SKILL-focused CLI mode that produces compact, agent-friendly output — use this when running Playwright from AI agents to minimize token consumption.

Workflow: Planner (explores app, creates specs) -> Generator (reads spec, tests live app) -> Healer (fixes failures, updates selectors).

New in Playwright 1.59 (Apr 2026) — relevant for AI agents:

  • page.screencast({start, stop, showActions}) — unified video + real-time JPEG frame streaming. Lets a Healer agent read frames mid-run for visual assertion without writing video files.
  • browser.bind() / npx playwright-cli attach — attach to a running browser from an MCP client mid-test; useful for Healer to inspect a hung or failing CI run.
  • locator.normalize() — rewrites a brittle locator to best-practice equivalents. Pair with Healer to auto-upgrade getByTestId → getByRole where possible.

Accessibility (Playwright)

Full-page accessibility validation with axe-core in E2E tests.

RuleFileKey Pattern
Playwright + axerules/a11y-playwright.mdWCAG 2.2 AA, interactive state testing
import AxeBuilder from '@axe-core/playwright';

test('page meets WCAG 2.2 AA', async ({ page }) => {
  await page.goto('/');
  const results = await new AxeBuilder({ page })
    .withTags(['wcag2a', 'wcag2aa', 'wcag22aa'])
    .analyze();
  expect(results.violations).toEqual([]);
});

Accessibility (CI/CD)

CI pipeline integration and jest-axe unit-level component testing.

RuleFileKey Pattern
CI Gates + jest-axerules/a11y-testing.mdPR blocking, component state testing

End-to-End Types

Type safety across API layers to eliminate runtime type errors.

RuleFileKey Pattern
Type Safetyrules/validation-end-to-end.mdtRPC, Zod, Pydantic, schema rejection tests

Visual Regression

Native Playwright screenshot comparison without external services.

await expect(page).toHaveScreenshot('checkout-page.png', {
  maxDiffPixels: 100,
  mask: [page.locator('.dynamic-content')],
});

See references/visual-regression.md for full configuration, CI/CD workflows, cross-platform handling, and Percy migration guide.

Key Decisions

DecisionRecommendation
E2E frameworkPlaywright 1.59+ with semantic locators
Locator strategygetByRole > getByLabel > getByTestId
BrowserChromium (Chrome for Testing in 1.59+)
Page patternPage Object Model for complex pages
Visual regressionPlaywright native toHaveScreenshot()
A11y testingaxe-core (E2E) + jest-axe (unit)
CI retries2-3 in CI, 0 locally
Flaky detectionfailOnFlakyTests: true in CI
AI agentsPlanner/Generator/Healer via init-agents
Type safetytRPC for end-to-end, Zod for runtime validation

References

ResourceDescription
references/playwright-1.59-api.mdPlaywright 1.59 API: locators, assertions, AI agents, screencast, browser.bind(), locator.normalize()
references/playwright-setup.mdInstallation, MCP server, seed tests, agent initialization
references/visual-regression.mdScreenshot config, CI/CD workflows, cross-platform, Percy migration
references/a11y-testing-tools.mdjest-axe setup, Playwright axe-core, CI pipelines, manual checklists

Checklists

ChecklistDescription
checklists/e2e-checklist.mdLocator strategy, page objects, CI/CD, visual regression
checklists/e2e-testing-checklist.mdComprehensive: planning, implementation, SSE, responsive, maintenance
checklists/a11y-testing-checklist.mdAutomated + manual: keyboard, screen reader, color contrast, WCAG

Examples

ExampleDescription
examples/e2e-test-patterns.mdUser flows, page objects, auth fixtures, API mocking, multi-tab, file upload
examples/a11y-testing-examples.mdjest-axe components, Playwright axe E2E, custom rules, CI pipeline
examples/orchestkit-e2e-tests.mdOrchestKit analysis flow: page objects, SSE progress, error handling

Scripts

ScriptDescription
scripts/create-page-object.mdGenerate Playwright page object with auto-detected patterns

Related Skills

  • testing-unit - Unit testing patterns with mocking, fixtures, and data factories
  • test-standards-enforcer - AAA and naming enforcement
  • run-tests - Test execution orchestration
  • emulate-seed - Seed configuration authoring for emulate providers
  • portless (upstream) - Stable HTTPS baseURL for local E2E tests (https://myapp.localhost instead of port guessing; HTTPS-on-443 default since portless 0.10)

平台分布

Codex

33.79%
按下载量换算174

Claude

28.66%
按下载量换算147

Cursor

18.65%
按下载量换算96

Gemini CLI

9.14%
按下载量换算47

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills