All skills
asyrafhussin avatar

/e2e-playwright-testing

@c03e38f

End-to-end testing with Playwright for web applications. Use when writing E2E tests, browser automation, form submission testing, or user flow testing. Triggers on "playwright", "e2e test", "browser test", "end-to-end", "form flow testing", or test files in tests/e2e/.

Use this Skill: https://skilld.dev/gh/asyrafhussin/agent-skills/e2e-playwright-testing

This session only. Nothing lands on disk.

README.md

≈280 tokens on demand. Your agent reads this file only when SKILL.md points to it.

E2E Playwright Testing

End-to-end testing patterns with Playwright for web applications.

Overview

8 rules across 6 categories covering locator strategies, authentication reuse, form testing (including React-specific gotchas), assertions, test organization, and reliability.

Key Patterns

  • Locators: Role-based over CSS selectors, strict mode handling
  • Auth: Setup project + storageState for login reuse
  • Forms: keyboard.type() for React date/time inputs, sr-only checkbox handling
  • Reliability: No arbitrary waits, single worker for shared DB, SPA navigation

Based On

Patterns derived from real E2E implementation on a Laravel + React + Inertia.js gold trading platform (35+ pages, 94 Playwright tests). Bugs discovered during implementation informed the rules:

  1. CSRF 419 failures from rate limiting during auth
  2. React date inputs not triggering onChange with fill()
  3. Double-label checkbox toggling twice (check + uncheck)
  4. Strict mode violations from ambiguous text locators

Installation

Copy the e2e-playwright-testing folder to your .claude/skills/ directory.

Source: SKILL.md on GitHub

No alerts16d4 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    The skill provides a comprehensive set of best practices and patterns for writing reliable end-to-end tests using Playwright. It focuses on locator strategies, authentication reuse, form handling, and test organization. No security issues were detected.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at c03e38f. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 6 months ago
Other metadata
metadata
{
  "author": "Agent Skills Contributors",
  "version": "1.0.0",
  "playwrightVersion": "1.50+",
  "nodeVersion": "18+"
}

README badge

README badge for asyrafhussin/agent-skills/e2e-playwright-testing