agentskills.codes
PL

playwright

End-to-end testing with Playwright for user journeys and accessibility

Install

mkdir -p .claude/skills/playwright-lfr-ai && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/14960" && unzip -o skill.zip -d .claude/skills/playwright-lfr-ai && rm skill.zip

Installs to .claude/skills/playwright-lfr-ai

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

End-to-end testing with Playwright for user journeys and accessibility
70 charsno explicit “when” trigger

About this skill

Playwright E2E Testing Skill

Purpose

Write and maintain end-to-end tests that verify critical user journeys, accessibility compliance, and cross-browser behavior using Playwright.

Locator Priority

Use accessible locators in this order:

  1. page.getByRole() — semantic role + accessible name
  2. page.getByLabel() — form controls by label
  3. page.getByText() — visible text content
  4. page.getByPlaceholder() — input placeholders
  5. page.getByTestId() — last resort for complex selectors

Best Practices

  • Test critical user journeys, not individual components.
  • Configure retries for CI (retries: 2).
  • Capture screenshots on failure.
  • Never hard-code sleeps/timeouts; rely on Playwright auto-waiting.
  • Run against production build when possible.

Running Tests

task test:e2e
task test:e2e:headed
task test:e2e:install

Search skills

Search the agent skills registry