e2e-test-generator

e2e-test-generator is an agent for coding agents 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

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/random6913/claude-code-superkit/e2e-test-generator
Clone the repo
git clone --depth 1 https://github.com/RaNDoM6913/claude-code-superkit

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.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.svg" alt="Measured on agentmods" 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. 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.00030 $0.02170
Opus 5 $0.00015 $0.01085
Sonnet 5 $0.00006 $0.00434
Haiku 4.5 $0.00003 $0.00217

Measured yesterday against content hash 7800cd231347, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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. yesterday 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 (2 stars, last pushed 1mo ago), licensed MIT. It adds 30 tokens to every session and 2,170 once invoked, about $0.0002 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-09-03.

Related

Other agents, from other repositories

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

browser_tester

Browser Tester — Test the live application from a user's perspective using browser automation. Starts servers, navigates the UI, validates user flows, takes screenshots, and reports findings.

zebbern/termstack · 38 tokens

gan-evaluator

GAN Harness — Evaluator agent. Tests live app via Playwright, scores against rubric, provides actionable feedback.

iabhisekbosepm/codex-god-setup · 26 tokens

oss-growth-hacker

OSS adoption and growth-hacking specialist for microsoft/apm. Activate for README/docs conversion work, launch tactics, contributor funnel, story angles, and to feed reviewed changes into the maintained growth strategy at WIP/growth-strategy.md.

microsoft/apm · 52 tokens

apm-primitives-architect

Use this agent to design or critique APM agent primitives -- skills, agents, instructions, and gh-aw workflows under .apm/ and .github/. Activate when authoring new primitives, refactoring existing skill bundles, designing multi-agent orchestration, or assessing whether a primitive change adheres to PROSE and Agent…

microsoft/apm · 74 tokens