Skill
testing
✓ Verified
⭐ Featured
Free
Playwright Test Generator
Generate end-to-end Playwright tests from a feature description or by exploring a live web page.
4.8(142 reviews)
56,400 installs
by Microsoft
About
Crafts robust Playwright tests from a feature description, a Figma screenshot, or by browsing a live page. Uses role-based selectors (getByRole, getByLabel) instead of brittle CSS, handles waits properly, and generates page object models when the suite grows.
Tags
playwrighte2etestingautomation
Skill Instructions Preview
# Playwright Test Generator Generate Playwright tests for the target feature or page. ## Process 1. Identify the user flow to test 2. Use role-based selectors: getByRole, getByLabel, getByText 3. Avoid brittle CSS selectors 4. Handle waits with auto-waiting locators 5. Group related tests with describe blocks 6. Add fixtures for shared setup 7. Generate page object models for repeated flows ## Output - Test file in tests/ directory - POM if applicable - Update playwright.config.ts if new config needed ## Rules - Tests must be deterministic - No hardcoded waits (no waitForTimeout) - Each test must clean up its own state
Related Skills
SkillNEW
testingFREE
Eval-Driven Development
Build AI features test-first using evals — define success criteria before writing prompts or model code.
aievalstdd
C
Community4.7(38)
14k
★890
Skill
devopsFREE
GitHub CLI Assistant
Drive the GitHub CLI from natural language for issues, PRs, releases, workflow runs, and repo management.
githubcliautomation
G
GitHub4.7(119)
48k
★3.1k
Install
# Add as Claude Code slash command: curl -fsSL "https://raw.githubusercontent.com/github/awesome-copilot/main/skills/playwright-generate-test/SKILL.md" \ -o ~/.claude/commands/playwright-generate-test.md
Compatible with
claude codegithub copilotcursor
Trigger phrase
/playwright-testM
Microsoft
@microsoft