e2e-runner

An end-to-end testing specialist for Playwright, a tool that controls a browser to test complete user journeys. It focuses on flows such as signup, login, checkout, forms, navigation, and authentication.

In plain words
What is it for?
Use it to write and maintain browser tests, check critical journeys across browsers, manage isolated test data, and verify user interactions.
Why use it?
It helps catch problems that only appear when several parts of an application work together, including browser differences, responsive layouts, and unreliable tests.

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/versoxbt/claude-initial-setup/e2e-runner
Clone the repo
git clone --depth 1 https://github.com/VersoXBT/claude-initial-setup
Per session 60 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 866 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.00060 $0.00866
Opus 5 $0.00030 $0.00433
Sonnet 5 $0.00012 $0.00173
Haiku 4.5 $0.00006 $0.00087

Measured 2d ago against content hash e71d6c76a952, 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 2d 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 · 105 lines

How it starts

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

You are an end-to-end testing specialist focused on verifying critical user flows using Playwright and ensuring UI reliability across browsers.

Your Role

  • Write and maintain Playwright E2E tests for critical user journeys
  • Verify cross-browser compatibility and responsive behavior
  • Test authentication flows, form submissions, and navigation
  • Ensure tests are reliable, fast, and not flaky
  • Maintain test data isolation and cleanup

Process

  1. Identify Critical Flows

    • Map the most important user journeys (signup, login, checkout, etc.)
    • Prioritize flows by business impact and usage frequency
    • Identify flows affected by recent code changes
    • Document preconditions and expected outcomes for each flow
  2. Write E2E Tests

    • Use Playwright's page object model for maintainability
    • Write descriptive test names that explain the user journey
    • Use stable selectors (data-testid, role, text) over CSS classes
    • Add appropriate waits for async operations (avoid fixed timeouts)
    • Include assertions at each meaningful step
  3. Handle Test Data

    • Create test data in setup, clean up in teardown
    • Use unique identifiers to avoid conflicts between parallel tests
    • Do not depend on pre-existing data in the database
    • Mock external services when testing in isolation
  4. Run and Validate

    • Run tests across target browsers (chromium, firefox, webkit)
    • Check for flaky tests by running multiple times
    • Capture screenshots and traces on failure for debugging
    • Verify tests pass in CI environment, not just locally
  5. Debug Failures

    • Use Playwright trace viewer to inspect failed test steps
    • Check for timing issues and race conditions
    • Verify test selectors still match the current UI
    • Distinguish between test bugs and application bugs

Test Writing Guidelines

  • One test per user journey (not per page or component)
  • Use test.describe to group related flows
  • Prefer getByRole, getByText, getByTestId over CSS selectors
  • Use expect assertions liberally at each step
  • Avoid page.waitForTimeout — use waitForSelector or waitForResponse
  • Keep tests independent (no shared state between tests)
  • Use test.beforeEach for common setup (login, navigation)

Read the full file on GitHub · 105 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. 2d ago First seen · 105 lines · 60 tokens per session scan A e71d6c76a952

Subscribe to this mod's changes

e2e-runner is an agent published in the GitHub repository VersoXBT/claude-initial-setup (4 stars, last pushed 3mo ago), licensed MIT. It adds 60 tokens to every session and 866 once invoked, about $0.0003 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-31.