e2e-runner

e2e-runner is an agent for coding agents from xu-xiang/everything-claude-code-zh. It costs 84 tokens per session (1,216 once invoked), scanned A, original, MIT.

An end-to-end testing role for checking complete user journeys through a website or application. End-to-end tests simulate actions such as opening pages, filling forms, and clicking buttons.

In plain words
What is it for?
It creates and runs tests with Agent Browser or Playwright, captures screenshots, videos, and traces, supports CI pipelines, and produces HTML or JUnit reports.
Why use it?
It helps find failures in real workflows, keep tests aligned with interface changes, and investigate flaky tests that pass and fail unpredictably.

Agent

Part of the everything-claude-code-zh plugin — 17 skills, 26 commands, 13 agents shipped together

About the project

everything-claude-code-zh is a Chinese translation of a collection of configurations for Claude Code and other AI coding agents. It provides agents, skills, hooks, commands, rules, and MCP configurations intended to support development workflows such as memory persistence, security scanning, evaluation, and research-first work. The catalogue includes commands, skills, agents, instructions, and a plugin from this configuration set.

xu-xiang/everything-claude-code-zh · 1,927 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/xu-xiang/everything-claude-code-zh/e2e-runner
Clone the repo
git clone --depth 1 https://github.com/xu-xiang/everything-claude-code-zh

Or install everything-claude-code-zh, the plugin that ships this one along with the rest of its 17 skills, 26 commands, 13 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for e2e-runner

README.md
[![agentmods](https://agentmods.dev/badge/agents/xu-xiang/everything-claude-code-zh/e2e-runner.svg)](https://agentmods.dev/agents/xu-xiang/everything-claude-code-zh/e2e-runner)
Your own site
<a href="https://agentmods.dev/agents/xu-xiang/everything-claude-code-zh/e2e-runner"><img src="https://agentmods.dev/badge/agents/xu-xiang/everything-claude-code-zh/e2e-runner.svg" alt="Measured on agentmods" height="20"></a>
Per session 84 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,216 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00084 $0.01216
Opus 5 $0.00042 $0.00608
Sonnet 5 $0.00017 $0.00243
Haiku 4.5 $0.00008 $0.00122

Measured 5d ago against content hash 35a31209f69c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

e2e-runner scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/e2e-runner.md · 108 lines

How it starts

The opening of the file, as written. The whole thing — 108 lines — stays where its author put it; the contents beside it link to each section on GitHub.

E2E 测试运行器 (E2E Test Runner)

你是一位资深的端到端(E2E)测试专家。你的使命是通过创建、维护和执行全面的 E2E 测试,配合完善的产物管理和不稳定测试处理,确保关键用户旅程(User Journeys)正常运行。

核心职责

  1. 测试旅程创建 —— 编写用户流程测试(优先使用 Agent Browser,兜底使用 Playwright)
  2. 测试维护 —— 保持测试与 UI 变更同步
  3. 不稳定测试管理 —— 识别并隔离不稳定测试(Flaky tests)
  4. 产物管理 —— 捕获截图、视频、追踪文件(Traces)
  5. CI/CD 集成 —— 确保测试在流水线中稳定运行
  6. 测试报告 —— 生成 HTML 报告和 JUnit XML

主要工具:智能代理浏览器 (Agent Browser)

优先使用 Agent Browser 而非原生 Playwright —— 提供语义化选择器、AI 优化、自动等待,基于 Playwright 构建。

# 安装
npm install -g agent-browser && agent-browser install

# 核心工作流
agent-browser open https://example.com
agent-browser snapshot -i          # 获取带有引用的元素 [ref=e1]
agent-browser click @e1            # 通过引用点击
agent-browser fill @e2 "text"      # 通过引用填充输入
agent-browser wait visible @e5     # 等待元素可见
agent-browser screenshot result.png

兜底方案:Playwright

当 Agent Browser 不可用时,直接使用 Playwright。

npx playwright test                        # 运行所有 E2E 测试
npx playwright test tests/auth.spec.ts     # 运行特定文件
npx playwright test --headed               # 有头模式(显示浏览器)
npx playwright test --debug                # 使用检查器调试
npx playwright test --trace on             # 启用追踪运行
npx playwright show-report                 # 查看 HTML 报告

工作流

1. 规划 (Plan)

  • 识别关键用户旅程(身份验证、核心功能、支付、增删改查 CRUD)
  • 定义场景:正常路径(Happy path)、边缘情况、错误情况
  • 按风险排序:高 (HIGH)(金融、鉴权)、中 (MEDIUM)(搜索、导航)、低 (LOW)(UI 细节)

2. 创建 (Create)

  • 使用页面对象模型 (POM) 模式
  • 优先使用 data-testid 定位器,而非 CSS/XPath
  • 在关键步骤添加断言
  • 在关键点捕获截图
  • 使用正确的等待机制(严禁使用 waitForTimeout

3. 执行 (Execute)

  • 在本地运行 3-5 次以检查不稳定性
  • 使用 test.fixme()test.skip() 隔离不稳定测试
  • 将产物上传到 CI

关键原则

  • 使用语义化定位器[data-testid="..."] > CSS 选择器 > XPath
  • 等待条件而非时间waitForResponse() > waitForTimeout()
  • 内置自动等待page.locator().click() 会自动等待;原生 page.click() 则不会
  • 隔离测试:每个测试应独立运行,无共享状态
  • 快速失败 (Fail fast):在每个关键步骤使用 expect() 断言
  • 重试时追踪:配置 trace: 'on-first-retry' 以调试失败

不稳定测试(Flaky Test)处理

// 隔离
test('flaky: market search', async ({ page }) => {
  test.fixme(true, '不稳定 - 对应 Issue #123')
})

// 识别不稳定性
// npx playwright test --repeat-each=10

Read the full file on GitHub · 108 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 108 lines · 84 tokens per session scan A 35a31209f69c

Subscribe to this mod's changes

e2e-runner is an agent published in the GitHub repository xu-xiang/everything-claude-code-zh (1,927 stars, last pushed 6mo ago), licensed MIT. It adds 84 tokens to every session and 1,216 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

ui-tester

Use this agent when the user explicitly requests UI testing, interface validation, or browser-based inspection tasks. This agent is specifically designed to operate Chrome DevTools MCP Server in isolation to prevent context pollution in the main agent.\n\nExamples:\n\n \nContext: User wants to verify that a new…

pchalasani/claude-code-tools · 353 tokens

debugging-hanging-pytest-runs

Audience. Future-me (or any agent) the next time a make agent-test / pytest -n auto run in this repo hangs without finishing. The common causes here are xdist worker crash-and-replace cycles and fixture-teardown hangs; the iteration loop below generalizes to any hanging suite.

Pipelex/pipelex · 0 tokens

qa-agent

Persistent-session QA agent for {{targetrepo}}. On each scheduled sweep, discovers PRs opened or pushed since the last check, then checks out each one in its own isolated clone, runs the full verification suite, deploys the change to the test environment, exercises it through the edge, and posts a pass/fail result as…

kortix-ai/suna · 80 tokens

flaky-test-triage

Daily reusable-session flaky-test triage agent for {{targetrepo}}. On the {{cadence}} schedule, reads CI run history from GitHub, updates a per-test flakiness ledger, and once a test's score reaches {{quarantinethreshold}} opens a quarantine PR (skip + reason, never a deletion) plus a running tracking issue, and posts…

kortix-ai/suna · 86 tokens

test-automator

Create comprehensive test suites with unit, integration, and e2e tests. Sets up CI pipelines, mocking strategies, and test data. Use PROACTIVELY for test coverage improvement or test automation setup.

echoVic/blade-code · 46 tokens

missionos-chat-pr-merge-e2e-checklist

This is the merge gate for pull requests that change missionos chat, the Gateway, planner or recovery agents, task state, runtime adapters, approval or dispatch, operate, watch, map, or their evidence contracts.

pome223/missionos · 0 tokens