testing-playwright-e2e

testing-playwright-e2e is a skill for Claude Code from joaoguirunas/team-os. It costs 83 tokens per session (2,016 once invoked), scanned A, original, MIT.

A guide to end-to-end browser testing with Playwright, which checks complete user flows in a real browser.

In plain words
What is it for?
It is for writing, reviewing, and debugging Playwright tests, configuring test suites, simulating network responses, handling authentication, and running tests in CI.
Why use it?
It helps make browser tests more reliable and reduces flaky failures, where a test passes or fails unpredictably.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit It is for writing, reviewing, and debugging Playwright tests, configuring test suites, simulating network responses, handling authentication, and running tests in CI.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/joaoguirunas/team-os/testing-playwright-e2e"><img src="https://agentmods.dev/badge/skills/joaoguirunas/team-os/testing-playwright-e2e.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,016 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.00083 $0.02016
Opus 5.5 $0.00033 $0.00806
Sonnet 5.5 $0.00017 $0.00403
Haiku 4.5 $0.00008 $0.00202

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

Security

Grade A, and why

testing-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 1mo 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.

.claude/skills/testing-playwright-e2e/SKILL.md · 185 lines

How it starts

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

Playwright E2E Best Practices

Skill de testes end-to-end destilada do playwright-best-practices da Currents.dev. Usada por dev-qa e sites-qa (test design, gates de qualidade), dev-dev-delta e sites-dev-delta (hardening, caça a flakiness) e pelos implementers ao entregar testes junto com stories. Complementa dev-testing-strategy (pirâmide de testes) — esta skill cobre a camada E2E.

1. Locators (a fundação)

1.1 — Priority order: getByRole > getByLabel > getByPlaceholder > getByText > getByTestId > CSS/XPath (last resort).

// ❌ brittle — breaks on any DOM/style refactor
page.locator('.btn-primary > span')
page.locator('div:nth-child(3) button')

// ✅ resilient — tied to user-visible semantics
page.getByRole('button', { name: 'Submit order' })
page.getByLabel('Email address')
page.getByTestId('checkout-total') // when semantics don't identify it

1.2 — Locators are lazy and auto-retrying. Define once, reuse; never cache element handles (elementHandle is a legacy API).

1.3 — Filter and chain instead of complex selectors:

page.getByRole('listitem').filter({ hasText: 'Product A' }).getByRole('button', { name: 'Add' })

2. Assertions & Waiting (a causa nº 1 de flakiness)

2.1 — Use web-first assertions — they auto-wait and retry:

// ❌ reads state once, races the app
expect(await page.locator('.status').textContent()).toBe('Done')
// ✅ retries until timeout
await expect(page.getByTestId('status')).toHaveText('Done')

2.2 — NEVER page.waitForTimeout(). Hard sleeps are the top flakiness source and slow the suite. Wait for a condition instead:

// ❌ await page.waitForTimeout(3000)
// ✅
await expect(page.getByRole('alert')).toBeVisible()
await page.waitForURL('**/dashboard')
await page.waitForResponse(r => r.url().includes('/api/orders') && r.ok())

2.3 — Assert user-visible outcomes, not implementation (URL, visible text, enabled state — not internal store values).

2.4 — Signal-then-act: when a click triggers a request you need to await, register waitForResponse BEFORE the click:

Read the full file on GitHub · 185 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. 1mo ago Changed db9c7d5ccc84
  2. 2mo ago First seen · 185 lines · 83 tokens per session scan A 2a60fe0d83b4

Subscribe to this mod's changes

testing-playwright-e2e is a skill published in the GitHub repository joaoguirunas/team-os (6 stars, last pushed 4d ago), licensed MIT. It adds 83 tokens to every session and 2,016 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-09-03.

Related

testing-playwright-e2e compared with skills from other repositories

testing-playwright-e2e next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
testing-playwright-e2ejoaoguirunas/team-osSkill64d agoMITA83Claude Code
dogfoodNousResearch/hermes-agentSkill261kyesterdayMITA18Claude Code, Codex
e2e-testingaffaan-m/ECCSkill298k4d agoMITA53Claude Code, Codex
e2e-testing-patternswshobson/agentsSkill42kyesterdayMITA51Claude Code
web-gui-testerasgeirtj/system_prompts_leaksSkill71k2d agoCC0-1.0A0Claude Code, Codex
memstack-development-webapp-testingcwinvestments/memstackSkill42913d agoMITA75Claude Code
browser-test-loopOneWave-AI/claude-skillsSkill41518d agoMITA74Claude Code, Codex