e2e-testing

e2e-testing is a skill for Claude Code, Codex from int2t05/engineering-skills. It costs 75 tokens per session (1,607 once invoked), scanned A, original, MIT.

A guide for writing end-to-end tests, which check complete user journeys through a real browser. It covers tools such as Playwright and frameworks such as React, Vue, and Next.js.

In plain words
What is it for?
Use it when creating or reviewing browser tests for user flows, form submissions, sign-in, and runtime checks of interface changes.
Why use it?
These tests can catch browser, layout, rendering, form, and authentication problems that smaller unit tests may miss.

Skill for Claude CodeCodex

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the engineering-skills plugin — 47 skills, 1 agent, 1 hook shipped together

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 skills/int2t05/engineering-skills/e2e-testing
Any agent
npx skills add int2t05/engineering-skills --skill e2e-testing
Clone the repo
git clone --depth 1 https://github.com/int2t05/engineering-skills

Made for: Claude Code, Codex.

Or install engineering-skills, the plugin that ships this one along with the rest of its 47 skills, 1 agent, 1 hook.

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-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/int2t05/engineering-skills/e2e-testing.svg)](https://agentmods.dev/skills/int2t05/engineering-skills/e2e-testing)
Your own site
<a href="https://agentmods.dev/skills/int2t05/engineering-skills/e2e-testing"><img src="https://agentmods.dev/badge/skills/int2t05/engineering-skills/e2e-testing.svg" alt="Measured on agentmods" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,607 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.00075 $0.01607
Opus 5 $0.00037 $0.00804
Sonnet 5 $0.00015 $0.00321
Haiku 4.5 $0.00007 $0.00161

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

Security

Grade A, and why

e2e-testing 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 4d 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.

skills/06-test/e2e-testing/SKILL.md · 132 lines

How it starts

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

End-to-End Testing

E2E tests verify real user flows through the browser. Unit tests don't catch CSS, layout, or rendering bugs — runtime verification does. Playwright is the default automation tool (adapt if your project uses Cypress or another); pair it with a browser-inspection tool like Chrome DevTools MCP for visual and network inspection when available.

When to use

  • Writing or reviewing E2E tests (Playwright by default, or your framework's equivalent)
  • Testing form submissions, authentication flows, user journeys
  • Debugging flaky browser tests
  • Verifying UI changes render correctly at runtime

Not for: backend-only changes, CLI tools, code that doesn't run in a browser. API contract testing (use api-testing); generating test scaffolds for existing code (use test-generation).

Steps

1. Detect the stack

Check package.json for @playwright/test. Detect the frontend framework (React, Vue, Next.js) — it affects waiting strategy and form input handling. Detect auth pattern (session vs token) and rate limiting (throttle middleware in dev causes 429s after ~5 login attempts).

2. Choose locators by priority

Role-based locators mirror how users and assistive technology interact with the page. They survive refactoring; CSS selectors and test IDs don't. Priority order and code examples — see references/playwright-rules.md.

Handle strict mode violations with { exact: true }, scoped locators, or .first() — never disable strict mode.

3. Reuse authentication with storage state

Log in once per role in a setup project, save browser state to JSON, and reuse via storageState in all tests. Never log in per-test — it wastes 1-2s per test and hits rate limits after ~5 attempts. Setup-project and storage-state code examples — see references/playwright-rules.md.

4. Use web-first assertions

expect(locator) auto-retries until the condition is met or timeout. Never use page.$() + manual checks, waitForTimeout, or isVisible() snapshots. Assertion examples — see references/playwright-rules.md.

Read the full file on GitHub · 132 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 132 lines · 75 tokens per session scan A 9c76717148d9

Subscribe to this mod's changes

e2e-testing is a skill published in the GitHub repository int2t05/engineering-skills (3 stars, last pushed 3d ago), licensed MIT. It adds 75 tokens to every session and 1,607 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-31.