playwright-e2e

playwright-e2e is a skill for Claude Code from lukasrepublic/agentic-foundry. It costs 0 tokens per session (1,508 once invoked), scanned A, original, MIT.

A guide for writing end-to-end tests with Playwright, which tests a complete user flow in a real browser.

In plain words
What is it for?
Use it to test acceptance-criteria flows, choose stable selectors, mock API responses, run tests in parallel in CI, diagnose flaky tests, and share test fixtures.
Why use it?
It helps keep tests reliable when the interface or styling changes, and makes test data and network behavior predictable.

Skill for Claude Code

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

Part of the foundry plugin — 84 skills, 8 agents, 11 hooks, 1 MCP server shipped together

Good fit Use it to test acceptance-criteria flows, choose stable selectors, mock API responses, run tests in parallel in CI, diagnose flaky tests, and share test fixtures.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lukasrepublic/agentic-foundry/playwright-e2e
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 lukasrepublic/agentic-foundry --skill playwright-e2e
Clone the repo
git clone --depth 1 https://github.com/lukasrepublic/agentic-foundry

Made for: Claude Code.

Or install foundry, the plugin that ships this one along with the rest of its 84 skills, 8 agents, 11 hooks, 1 MCP server.

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 playwright-e2e

README.md
[![agentmods](https://agentmods.dev/badge/skills/lukasrepublic/agentic-foundry/playwright-e2e/github.svg)](https://agentmods.dev/skills/lukasrepublic/agentic-foundry/playwright-e2e)
Your own site
<a href="https://agentmods.dev/skills/lukasrepublic/agentic-foundry/playwright-e2e"><img src="https://agentmods.dev/badge/skills/lukasrepublic/agentic-foundry/playwright-e2e/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 playwright-e2e

Your own site · 80×15
<a href="https://agentmods.dev/skills/lukasrepublic/agentic-foundry/playwright-e2e"><img src="https://agentmods.dev/badge/skills/lukasrepublic/agentic-foundry/playwright-e2e.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,508 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.00000 $0.01508
Opus 5.5 $0.00000 $0.00603
Sonnet 5.5 $0.00000 $0.00302
Haiku 4.5 $0.00000 $0.00151

Measured 3mo ago against content hash 745fb6ff37ba, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

playwright-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 3mo 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.

packs/stack-profiles/node-web/blueprints/playwright-e2e/SKILL.md · 79 lines

How it starts

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

When to trigger

  • Authoring an e2e test for a user-facing flow cited in a spec's acceptance criteria.
  • Selector-strategy decisions (testid vs. role vs. label vs. text).
  • Network-mocking decisions: mocking at the route level for deterministic test data.
  • CI workflow changes for parallel e2e execution.
  • Flaky-test diagnosis.
  • Adding shared fixtures or test helpers for an e2e suite.

Procedure

  1. Place the test under the target package's e2e/<surface>/<feature>.spec.ts — <surface> is the web surface under test. Read the existing e2e/ directory for naming and structure conventions before adding new files.

  2. Selector strategy (in priority order): a. page.getByTestId('<data-testid>') — preferred; stable, intention-declaring. b. page.getByRole('<role>', { name: '<accessible-name>' }) — second choice; semantically meaningful. c. page.getByLabel('<label-text>') — for form inputs with associated labels. d. CSS-class selectors — banned. Classes change with styling refactors; tests must survive style changes.

  3. Network mocking via page.route: mock API responses at the network boundary — not at the function boundary. Use page.route('**/api/<resource>/**', handler) at the fixture or test level. The handler defines the response body; actual network traffic is intercepted. This keeps tests deterministic without a running backend.

  4. Fixture composition via test.extend:

    • Create shared fixtures for setup that multiple tests need (e.g., authenticated state, seeded data).
    • Never share mutable state between tests. Each test starts from a known fixture state.
    • Use test.use({ storageState: 'auth.json' }) for auth-state reuse across a suite.
  5. Parallelism: tests are parallel-safe by default. If a test mutates global state (e.g., writes to a shared DB that affects other tests), isolate it with test.describe.serial. Mark the reason with a comment.

  6. Run command: {{ profile.test_recipe.e2e }} from the project root. For a targeted run, scope to a surface: append e2e/<surface>/ to the run command.

Read the full file on GitHub · 79 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. 3mo ago First seen · 79 lines · 0 tokens per session scan A 745fb6ff37ba

Subscribe to this mod's changes

playwright-e2e is a skill published in the GitHub repository lukasrepublic/agentic-foundry (0 stars, last pushed 23d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,508 tokens. 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

playwright-e2e compared with skills from other repositories

playwright-e2e next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
playwright-e2elukasrepublic/agentic-foundrySkill023d agoMITA0Claude Code
proof-e2etonone-ai/tononeSkill842d agoMITA63Claude Code
proof-strategytonone-ai/tononeSkill842d agoMITA53Claude Code
proof-recontonone-ai/tononeSkill842d agoMITA50Claude Code
screen-reader-testingwshobson/agentsSkill43k5d agoMITA39Claude Code
e2e-testing-patternswshobson/agentsSkill43k5d agoMITA51Claude Code
relay-deploytonone-ai/tononeSkill842d agoMITA48Claude Code