e2e

e2e is a command for coding agents from raja21068/AutoResearch. It costs 10 tokens per session (581 once invoked), scanned A, a copy of e2e, MIT.

A Playwright workflow for end-to-end (E2E) testing, which checks a complete user journey through an application. It creates tests, runs them, and captures screenshots or videos for results.

In plain words
What is it for?
Use it to test flows such as signing in, filling forms, clicking controls, and verifying results in a browser.
Why use it?
It checks whether connected parts of an application work together from a user's point of view, making failures easier to investigate.

Command

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 commands/raja21068/autoresearch/e2e
Clone the repo
git clone --depth 1 https://github.com/raja21068/AutoResearch

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/raja21068/autoresearch/e2e.svg)](https://agentmods.dev/commands/raja21068/autoresearch/e2e)
Your own site
<a href="https://agentmods.dev/commands/raja21068/autoresearch/e2e"><img src="https://agentmods.dev/badge/commands/raja21068/autoresearch/e2e.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 581 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 94% copy Near-identical to another mod 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.00010 $0.00581
Opus 5 $0.00005 $0.00291
Sonnet 5 $0.00002 $0.00116
Haiku 4.5 $0.00001 $0.00058

Measured today against content hash fdc040d9d32c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

e2e 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 today.

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.

Origin

This is a copy

94% identical to e2e — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/commands/e2e.md · 106 lines

How it starts

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

E2E Command

Generate and run end-to-end tests using Playwright: $ARGUMENTS

Your Task

  1. Analyze user flow to test
  2. Create test journey with Playwright
  3. Run tests and capture artifacts
  4. Report results with screenshots/videos

Test Structure

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

test.describe('Feature: [Name]', () => {
  test.beforeEach(async ({ page }) => {
    // Setup: Navigate, authenticate, prepare state
  })

  test('should [expected behavior]', async ({ page }) => {
    // Arrange: Set up test data

    // Act: Perform user actions
    await page.click('[data-testid="button"]')
    await page.fill('[data-testid="input"]', 'value')

    // Assert: Verify results
    await expect(page.locator('[data-testid="result"]')).toBeVisible()
  })

  test.afterEach(async ({ page }, testInfo) => {
    // Capture screenshot on failure
    if (testInfo.status !== 'passed') {
      await page.screenshot({ path: `test-results/${testInfo.title}.png` })
    }
  })
})

Best Practices

Selectors

  • Prefer data-testid attributes
  • Avoid CSS classes (they change)
  • Use semantic selectors (roles, labels)

Waits

  • Use Playwright's auto-waiting
  • Avoid page.waitForTimeout()
  • Use expect().toBeVisible() for assertions

Test Isolation

  • Each test should be independent
  • Clean up test data after
  • Don't rely on test order

Artifacts to Capture

  • Screenshots on failure
  • Videos for debugging
  • Trace files for detailed analysis
  • Network logs if relevant

Test Categories

  1. Critical User Flows

    • Authentication (login, logout, signup)
    • Core feature happy paths
    • Payment/checkout flows
  2. Edge Cases

    • Network failures
    • Invalid inputs
    • Session expiry
  3. Cross-Browser

    • Chrome, Firefox, Safari
    • Mobile viewports

Report Format

E2E Test Results
================
PASS: Passed: X
FAIL: Failed: Y
SKIPPED: Skipped: Z

Failed Tests:
- test-name: Error message
  Screenshot: path/to/screenshot.png
  Video: path/to/video.webm

Read the full file on GitHub · 106 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. today First seen · 106 lines · 10 tokens per session scan A fdc040d9d32c

Subscribe to this mod's changes

e2e is a command published in the GitHub repository raja21068/AutoResearch (2 stars, last pushed 3mo ago), licensed MIT. It adds 10 tokens to every session and 581 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 94% identical to e2e, differing in 2 lines, and is treated as a copy.