e2e-testing

e2e-testing is a skill for Claude Code from shennawardana23/skillme. It costs 66 tokens per session (990 once invoked), scanned A, original, Apache-2.0.

A guide for writing and diagnosing Playwright end-to-end tests, which test a complete user flow through a browser. It covers organizing tests with reusable page objects, setting up continuous integration, and reducing flaky failures.

In plain words
What is it for?
Use it when creating Playwright browser tests, investigating intermittent failures, configuring Playwright in CI, or reviewing waits and race conditions.
Why use it?
It helps prevent tests from racing the page or relying on arbitrary time delays, which can make browser tests pass locally but fail intermittently in automated builds.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the skillme plugin — 137 skills, 2 commands shipped together

Good fit Use it when creating Playwright browser tests, investigating intermittent failures, configuring Playwright in CI, or reviewing waits and race conditions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shennawardana23/skillme/e2e-testing
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.

Any agent
npx skills add shennawardana23/skillme --skill e2e-testing
Clone the repo
git clone --depth 1 https://github.com/shennawardana23/skillme

Made for: Claude Code.

Or install skillme, the plugin that ships this one along with the rest of its 137 skills, 2 commands.

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/shennawardana23/skillme/e2e-testing/github.svg)](https://agentmods.dev/skills/shennawardana23/skillme/e2e-testing)
Your own site
<a href="https://agentmods.dev/skills/shennawardana23/skillme/e2e-testing"><img src="https://agentmods.dev/badge/skills/shennawardana23/skillme/e2e-testing/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-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/shennawardana23/skillme/e2e-testing"><img src="https://agentmods.dev/badge/skills/shennawardana23/skillme/e2e-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 990 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.00066 $0.00990
Opus 5 $0.00033 $0.00495
Sonnet 5 $0.00013 $0.00198
Haiku 4.5 $0.00007 $0.00099

Measured 9d ago against content hash d9411691a4b4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 9d 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/e2e-testing/SKILL.md · 108 lines

How it starts

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

End-to-End Testing (Playwright)

E2E tests sit at the top of the test pyramid — expensive, slow, and the first place flakiness shows up. Most flakiness traces back to one thing: the test racing the page instead of waiting for a specific, observable condition.

Page Object Model

export class ReservationsPage {
  constructor(private page: Page) {}

  async goto() {
    await this.page.goto("/reservations");
  }

  async search(query: string) {
    await this.page.locator('[data-testid="search-input"]').fill(query);
    await this.page.waitForResponse((r) => r.url().includes("/api/search"));
  }

  rows() {
    return this.page.locator('[data-testid="reservation-row"]');
  }
}

The single highest-value fix: stop waiting on time, wait on state

// Flaky: races the animation/network, passes locally, fails in CI
await page.waitForTimeout(2000);
await page.click('[data-testid="confirm"]');

// Stable: waits for the actual condition
await page.locator('[data-testid="confirm"]').waitFor({ state: "visible" });
await page.locator('[data-testid="confirm"]').click();

Playwright locators already auto-wait for actionability (attached, visible, stable, enabled) before acting — page.waitForTimeout is almost never the right tool and should be treated as a review finding, not a style preference.

Gotchas

  • page.click(selector) on a raw selector string skips Playwright's auto-waiting in some older API patterns; page.locator(selector).click() is the form that gets the actionability checks. Prefer locators throughout, not selector strings passed directly to action methods.
  • A test that passes locally but fails in CI is frequently a timing issue invisible on a fast local machine and a slow, resource-constrained CI runner — reproduce with --repeat-each=10 before assuming it's an environment misconfiguration.
  • test.skip/test.fixme used to silence a flaky test without an attached issue reference is a one-way door — the test quietly stops providing coverage and nobody notices it never runs again. Always attach a tracking reference when quarantining a test.
  • CI-only flakiness is commonly a resource contention issue, not a logic bug: setting workers: 1 for CI (serializing tests) and retries: 2 is a legitimate stabilizing measure while investigating root cause, but should not be treated as the fix itself — a retried, silently-passing flaky test is still hiding a real race condition.

Read the full file on GitHub · 108 lines

Files

What ships with it

1 file 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. 9d ago First seen · 108 lines · 66 tokens per session scan A d9411691a4b4

Subscribe to this mod's changes

e2e-testing is a skill published in the GitHub repository shennawardana23/skillme (2 stars, last pushed 11d ago), licensed Apache-2.0. It adds 66 tokens to every session and 990 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.

Related

Other skills, from other repositories

e2e-pr-stabilizer

Stabilizes or optimizes Playwright E2E tests on one PR via a local-first loop, then ratifies with a single CI run. Pulls Dash0 spans (git.pullrequestlink) as the historical baseline, then captures every iteration's evidence locally with --trace=on (same OTel exporter, same trace schema). Validation is empirical, not…

mthines/agent-skills · 258 tokens

aw-setup

One-time (but safely re-runnable) setup flow that scaffolds a project's aw-tester aw-target: detects auth strategy, captures storage state, writes .claude/aw-targets/local.yml, and validates with a smoke spec. Re-runs detect the existing aw-target and only re-prompt for what broke or changed. Triggers on "/aw-setup"…

mthines/agent-skills · 91 tokens

playwright-trace-analyzer

Analyzes Playwright E2E trace.zip archives (and bare trace JSONL when unpacked). Extracts the action timeline, network waterfall, console errors, and DOM-snapshot anchors, then identifies the highest-impact problems (flaky waits, slow selectors, network bottlenecks, hung actions, unhandled console errors, navigation…

mthines/agent-skills · 232 tokens

e2e-testing-mobile

Plans, generates, runs, and heals end-to-end tests for Expo and React Native mobile apps using Maestro (the 2026 standard for RN E2E, adopted by Meta, Microsoft, and DoorDash, and integrated with Expo via EAS Workflows). Drives a spec-first YAML-flow loop, proposes testID source diffs (never accessibilityLabel reuse)…

mthines/agent-skills · 202 tokens

e2e-testing

Plans, generates, runs, and heals end-to-end tests using Playwright Test Agents (Planner, Generator, Healer) and the official @playwright/mcp server. Drives a spec-first feature-flow loop, proposes data-testid source diffs only when accessibility-tree locators fail, and stays token-aware via snapshot mode and…

mthines/agent-skills · 153 tokens

aw-tester-chrome

Runs UI verification specs in-session through the claude-in-chrome extension — the Chrome sibling of the aw-tester agent. Reads the same specs.md and aw-target.yml, drives Chrome interactively (navigate → read → act → assert, seeing the page between steps), and emits the same compact verdict block. Runs in the current…

mthines/agent-skills · 161 tokens