e2e-playwright-testing

e2e-playwright-testing is a skill for Claude Code, Codex from AsyrafHussin/agent-skills. It costs 74 tokens per session (1,813 once invoked), scanned A, original, MIT.

A guide for writing end-to-end browser tests with Playwright, a tool that controls a real web browser to test complete user journeys. It covers locating page elements, forms, login reuse, assertions, reliability, and continuous integration.

In plain words
What is it for?
Use it when creating or reviewing Playwright tests for web applications, including React, Vue, Next.js, and Inertia.js projects.
Why use it?
It helps catch problems in complete web flows, such as filling out a form or moving between pages, while accounting for differences between frontend frameworks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use it when creating or reviewing Playwright tests for web applications, including React, Vue, Next.js, and Inertia.js projects.

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

Made for: Claude Code, Codex.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/asyrafhussin/agent-skills/e2e-playwright-testing"><img src="https://agentmods.dev/badge/skills/asyrafhussin/agent-skills/e2e-playwright-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,813 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. Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk pass 15 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00074 $0.01813
Opus 5.5 $0.00030 $0.00725
Sonnet 5.5 $0.00015 $0.00363
Haiku 4.5 $0.00007 $0.00181

Measured today against content hash 26f4ea32fb4f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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

skills/e2e-playwright-testing/SKILL.md · 234 lines

How it starts

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

E2E Playwright Testing

Patterns and conventions for reliable end-to-end browser testing with Playwright.

Comprehensive E2E testing guide for web applications. Contains 8 rules across 6 categories covering locator strategies, authentication reuse, form testing (including React/SPA-specific gotchas), assertions, test organization, reliability, and CI/CD configuration.

Stack Detection

Before writing or reviewing E2E tests, detect the project stack:

Step 1 — Check for Playwright

# Look in package.json devDependencies:
# "@playwright/test" → Playwright is installed
# Check for playwright.config.js or playwright.config.ts
  • If @playwright/test is present → use Playwright patterns from this skill
  • If cypress is present → this skill does not apply

Step 2 — Detect Frontend Framework

# Check package.json dependencies:
# "react" + "@inertiajs/react" → React + Inertia.js (SPA with server routing)
# "react" + "react-router" → React SPA
# "vue" → Vue.js
# "next" → Next.js

Why this matters:

  • React + Inertia.js: Use waitForURL not waitForLoadState('networkidle') — Inertia uses history.pushState
  • React controlled inputs: fill() works for text but keyboard.type() needed for date/time
  • SPA navigation: Page doesn't do full reload — assertions must wait for content, not network idle

Step 3 — Detect Auth Pattern

# Check for session-based (Laravel Sanctum) or token-based (JWT) auth
# Session: storageState saves cookies
# Token: may need to save tokens to localStorage

Step 4 — Detect Rate Limiting

# Check routes for throttle middleware
# If present in dev, tests will hit 429 after ~5 login attempts
# Solution: production-only throttle or increase limits in test env

Metadata

  • Version: 1.0.0
  • Rule Count: 8 rules across 6 categories
  • License: MIT

When to Apply

  • Writing or reviewing Playwright E2E tests
  • Setting up E2E testing for a new project
  • Debugging flaky browser tests
  • Testing form submissions, authentication flows, or user interactions
  • Choosing locator strategies for elements
  • Configuring Playwright for CI/CD

Read the full file on GitHub · 234 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 Changed 26f4ea32fb4f
  2. 3mo ago First seen · 234 lines · 74 tokens per session scan A dacfd2e824fa

Subscribe to this mod's changes

e2e-playwright-testing is a skill published in the GitHub repository AsyrafHussin/agent-skills (111 stars, last pushed today), licensed MIT. It adds 74 tokens to every session and 1,813 once invoked, about $0.0003 per session on Opus 5.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.

Related

e2e-playwright-testing compared with skills from other repositories

e2e-playwright-testing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
e2e-playwright-testingAsyrafHussin/agent-skillsSkill111todayMITA74Claude Code, Codex
browser-checkjjanczur/tyranSkill788d agoApache-2.0A58Claude Code
write-e2egreglas75/zuvoSkill7todayMITA101Claude Code
browser-testalfredolopez80/multi-agent-ralph-loopSkill1462mo agononeA83Claude Code
e2e-testingNmor/the-claude-councilSkill122mo agononeA70Claude Code, Codex
cua-driverdavidondrej/skillsSkill4.4k3d agoMITA68Claude Code, Codex
create-verification-skillget-bb/bbSkill6.2ktodayMITA57Claude Code, Codex