e2e-test-generator

e2e-test-generator is an agent for Claude Code from RaNDoM6913/claude-code-superkit. It costs 30 tokens per session (2,170 once invoked), scanned A, original, MIT.

A tool that creates and runs Playwright end-to-end tests, which test complete user journeys in a browser. It uses page objects, stable selectors, mocked network requests, and multiple screen sizes.

In plain words
What is it for?
It is for testing pages and user flows across viewports, with each page represented by a reusable Page Object Model.
Why use it?
It adds repeatable browser coverage without depending on a live backend or fragile page details.

Agent for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; mentions CLAUDE.md; mentions AGENTS.md.

Good fit It is for testing pages and user flows across viewports, with each page represented by a reusable Page Object Model.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/random6913/claude-code-superkit/e2e-test-generator
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.

Clone the repo
git clone --depth 1 https://github.com/RaNDoM6913/claude-code-superkit

Made for: Claude Code.

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-test-generator

README.md
[![agentmods](https://agentmods.dev/badge/agents/random6913/claude-code-superkit/e2e-test-generator/github.svg)](https://agentmods.dev/agents/random6913/claude-code-superkit/e2e-test-generator)
Your own site
<a href="https://agentmods.dev/agents/random6913/claude-code-superkit/e2e-test-generator"><img src="https://agentmods.dev/badge/agents/random6913/claude-code-superkit/e2e-test-generator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for e2e-test-generator

Your own site · 80×15
<a href="https://agentmods.dev/agents/random6913/claude-code-superkit/e2e-test-generator"><img src="https://agentmods.dev/badge/agents/random6913/claude-code-superkit/e2e-test-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,170 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00030 $0.02170
Opus 5.5 $0.00012 $0.00868
Sonnet 5.5 $0.00006 $0.00434
Haiku 4.5 $0.00003 $0.00217

Measured 1mo ago against content hash 7800cd231347, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

e2e-test-generator 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 1mo 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.

packages/core/agents/e2e-test-generator.md · 262 lines

How it starts

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

E2E Test Generator (Playwright)

Generate Playwright end-to-end tests using the Page Object Model, stable selectors, network mocking, and multi-viewport coverage — then run them before reporting.

Hard Rules

  1. NEVER use page.waitForTimeout() — use locator assertions or waitForResponse.
  2. NEVER use CSS class selectors (fragile) — use filter() with text/role instead.
  3. Mock ALL API calls with page.route() — tests must not depend on a running backend.
  4. Every page under test gets a Page Object class.
  5. Every test gets fresh state: set up in beforeEach, never share mutable state between tests.
  6. Test files are named {page-name}.spec.ts.
  7. Run generated tests before claiming success — or explicitly report NOT RUN with the reason.

Phase 0 — Load Project Context

Read if present, skip silently if absent: CLAUDE.md or AGENTS.md; docs/architecture/frontend-state.md (screen tree, navigation model, key user flows). Use it to: know which screens/flows need coverage, the routing approach (URL-based vs state-based), and which API endpoints to mock. If no docs exist, fall back to README.md, directory structure, and existing patterns.

Process

Phase 1 — Detect project setup

  1. Read playwright.config.ts (or .js) — baseURL, browsers, viewport, test directory.
  2. Read existing tests in the test directory — match their style.
  3. Read existing Page Objects (tests/pages/ or similar) — extend, do not duplicate.
  4. Identify the frontend stack (React, Vue, Svelte) and routing approach. Done when: you know the test directory, run command, and existing conventions.

Phase 2 — Generate

  1. Read the target page/component — UI structure, interactive elements.
  2. Create/update Page Objects for each page under test.
  3. Generate tests covering (map each to the Coverage Priorities table):
    • Page loads and renders key sections
    • Navigation between sections/tabs
    • CRUD operations with mocked API responses
    • Error states (API failures, empty states)
    • Permission/role-based visibility (if applicable)
    • Mobile viewport behavior
  4. Add visual regression snapshots for pages with complex layouts. Done when: every file exists on disk (verify with Read/ls) and follows the patterns below.

Read the full file on GitHub · 262 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. 1mo ago First seen · 262 lines · 30 tokens per session scan A 7800cd231347

Subscribe to this mod's changes

e2e-test-generator is an agent published in the GitHub repository RaNDoM6913/claude-code-superkit (3 stars, last pushed 10d ago), licensed MIT. It adds 30 tokens to every session and 2,170 once invoked, about $0.0001 per session on Opus 5.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-09-03.

Related

Other agents, from other repositories

gan-evaluator

GAN Harness — Evaluator agent. Tests the live running application via Playwright, scores against rubric, and provides actionable feedback to the Generator.

affaan-m/ECC · 32 tokens

gsd-dom-verifier

Verifies live-DOM acceptance criteria for a completed execution wave using a browser MCP server. Writes DOM-VERIFY.md. Additive — never blocks a wave. Spawned by the live-dom-uat capability at execute:wave:post.

open-gsd/gsd-core · 54 tokens

Plugin Tester

End-to-end plugin testing agent for OpenWebUI. Deploys plugins via scripts, tests them interactively via the VS Code built-in browser tools (Playwright-based), captures results, and self-learns from each session. Use when verifying plugin behavior, debugging UI output, or running regression checks.

Fu-Jie/openwebui-extensions · 63 tokens

e2e-test-specialist

Playwright, Cypress, and visual regression testing specialist. Use when writing E2E tests, setting up browser automation, or implementing visual regression testing. Trigger phrases: E2E, end-to-end, Playwright, Cypress, visual regression, browser test, screenshot test, Percy, Chromatic.

travisjneuman/.claude · 67 tokens

e2e-runner

End-to-end testing specialist using Vercel Agent Browser (preferred) with Playwright fallback. Use PROACTIVELY for generating, maintaining, and running E2E tests. Manages test journeys, quarantines flaky tests, uploads artifacts (screenshots, videos, traces), and ensures critical user flows work.

vibeeval/vibecosystem · 69 tokens

visual-qa-subagent

Performs visual QA inspection using Playwright browser automation.

closedloop-ai/claude-plugins · 17 tokens