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.zipInstalls 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 accessibility70 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:
page.getByRole()— semantic role + accessible namepage.getByLabel()— form controls by labelpage.getByText()— visible text contentpage.getByPlaceholder()— input placeholderspage.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