e2e-test-conventions

e2e-test-conventions is a skill for Claude Code from agentmantis/test-skills. It costs 84 tokens per session (2,512 once invoked), scanned A, original, MIT.

A set of conventions for Playwright end-to-end tests written in TypeScript. End-to-end tests operate a real application through its user interface to check complete user journeys.

In plain words
What is it for?
Use it when creating, changing, or reviewing tests for login, navigation, page behaviour, test data, environments, and parallel runs.
Why use it?
It keeps browser tests organised, reliable, independent, and consistent across the project.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

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

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/agentmantis/test-skills/e2e-test-conventions.svg)](https://agentmods.dev/skills/agentmantis/test-skills/e2e-test-conventions)
Your own site
<a href="https://agentmods.dev/skills/agentmantis/test-skills/e2e-test-conventions"><img src="https://agentmods.dev/badge/skills/agentmantis/test-skills/e2e-test-conventions.svg" alt="Measured on agentmods" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,512 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.1 $0.00084 $0.02512
Opus 5 $0.00042 $0.01256
Sonnet 5 $0.00017 $0.00502
Haiku 4.5 $0.00008 $0.00251

Measured 6d ago against content hash b354f6ddbabd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

e2e-test-conventions 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 6d 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-test-conventions/SKILL.md · 266 lines

How it starts

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

E2E Test Conventions

These conventions apply to all Playwright E2E test code. Read and follow them whenever generating, modifying, or reviewing tests.


Technology Stack

  • Playwright for browser automation and test running
  • TypeScript for all test code (no plain JavaScript)
  • Framework-agnostic — adapt selectors and helpers to whatever UI framework the project uses

Project Structure

The e2e/ directory follows this layout:

e2e/
├── auth/                    # Authentication setup (runs before all tests)
│   └── auth.setup.ts        # Logs in and saves session state
├── fixtures/                # Custom Playwright fixtures
│   └── base.ts              # Extends Playwright's test with custom fixtures
├── helpers/                 # Shared utility functions (NOT page objects)
│   └── env-config.ts        # Environment resolution
├── poms/                    # Page Object Models (one file per page)
│   └── base.page.ts         # Abstract base class — all POMs extend this
├── test-data/               # External test data (JSON files)
├── tests/                   # Test specs organised by suite
│   ├── handover/            # Ticket-driven handover tests (temporary)
│   ├── regression/          # Full regression tests (permanent)
│   └── smoke/               # Quick critical-path checks
├── playwright.config.ts
├── tsconfig.json
└── .env.example             # Template for environment variables

Rules:

  • Do NOT create files outside this structure
  • Do NOT move existing files without explicit permission

See references/folder-structure.md for details on each directory.


Browser × Suite Configuration

The Playwright config defines projects using {browser}:{suite} naming:

Browsers: chromium, firefox, webkit, mobile-chrome, mobile-safari

Suites:

Suite Directory Purpose Lifecycle
regression tests/regression/ Full regression Permanent
handover tests/handover/ Ticket-driven handover Temporary — promote or delete
smoke tests/smoke/ Critical-path sanity Permanent

Read the full file on GitHub · 266 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. 6d ago First seen · 266 lines · 84 tokens per session scan A b354f6ddbabd

Subscribe to this mod's changes

e2e-test-conventions is a skill published in the GitHub repository agentmantis/test-skills (12 stars, last pushed 5mo ago), licensed MIT. It adds 84 tokens to every session and 2,512 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-30.