Playwright E2E Test Generator
by Timoranjes
Teaches AI coding agents to generate production-quality Playwright end-to-end tests from page analysis, user stories, or existing code. Covers selector strategy, test structure patterns, flakiness prevention, and CI integration — for QA engineers and solo devs tired of AI-generated tests that break on first run.
- Generate Page Object Model classes from component code
- Mock unstable API endpoints for deterministic testing
- Implement auto-retrying web-first assertions to stop flakiness
$8
· or 40 creditsSecure checkout via Stripe
Included in download
- Generate Page Object Model classes from component code
- Mock unstable API endpoints for deterministic testing
- terminal, browser, env_vars automation included
- Ready for Cursor
See it in action
You say
Create a Playwright test for my login page. It needs to handle a successful login, a failed login with a 401 error, and include a Page Object.
Your agent does
I've created pages/LoginPage.ts using semantic locators like getByLabel and getByRole. I also generated tests/login.spec.ts which mocks a 401 status via page.route to verify the error banner appears, and added a GitHub Actions workflow for CI.
Playwright E2E Test Generator
by Timoranjes
Teaches AI coding agents to generate production-quality Playwright end-to-end tests from page analysis, user stories, or existing code. Covers selector strategy, test structure patterns, flakiness prevention, and CI integration — for QA engineers and solo devs tired of AI-generated tests that break on first run.
$8
· or 40 creditsSecure checkout via Stripe
Included in download
- Generate Page Object Model classes from component code
- Mock unstable API endpoints for deterministic testing
- terminal, browser, env_vars automation included
- Ready for Cursor
- Instant install
See it in action
You say
Create a Playwright test for my login page. It needs to handle a successful login, a failed login with a 401 error, and include a Page Object.
Your agent does
I've created pages/LoginPage.ts using semantic locators like getByLabel and getByRole. I also generated tests/login.spec.ts which mocks a 401 status via page.route to verify the error banner appears, and added a GitHub Actions workflow for CI.
About This Skill
AI coding agents can generate code fast — but the tests they produce are brittle, flaky, and fail on first run. They use fragile selectors, skip error states, ignore async timing, and produce monolithic test files with no structure. This skill teaches your agent to generate Playwright E2E tests that actually work in production: - Smart selector strategy — data-testid > role > text > CSS, with fallback chain - Test structure patterns — Page Object Model, fixtures, test isolation - Flakiness prevention — auto-waits, retry logic, network idle detection - CI integration — GitHub Actions, sharding, artifact collection - Real-world examples — auth flows, data tables, file uploads, multi-step forms - Quality validation script included — checks generated tests for common issues Includes 4 reference files: selector strategy guide, flakiness prevention patterns, real-world test examples, and Playwright templates (POM, API mocking, CI config, GitHub Actions). PRICING: $8.00 one-time. Saves 30+ minutes per session by eliminating test rewrite cycles. Cheaper than 15 minutes of senior QA time.
Use Cases
- Generate Page Object Model classes from component code
- Mock unstable API endpoints for deterministic testing
- Implement auto-retrying web-first assertions to stop flakiness
- Configure CI/CD pipelines for automated test execution
Known Limitations
- Best for TypeScript/JavaScript projects.
- Requires data-testid attributes for complex dynamic content.
- Visual regression setup requires existing baseline images.
How to Install
mkdir -p ~/.claude/skills && curl -sL https://www.agensi.io/api/install/playwright-e2e-test-generator -o /tmp/playwright-e2e-test-generator.zip && unzip -o /tmp/playwright-e2e-test-generator.zip -d ~/.claude/skills && rm /tmp/playwright-e2e-test-generator.zipFree skills install directly. Paid skills require purchase - use the download button above after buying.
Reviews
No reviews yet - be the first to share your experience.
Only users who have downloaded or purchased this skill can leave a review.
Early access skill
Be the first to review this skill.
Only users who have downloaded or purchased this skill can leave a review.
Security Scanned
Passed automated security review
Permissions
Allowed Hosts
File Scopes
Compatible with SKILL.md-compatible agents including Claude Code, Cursor, and Windsurf.
Creator
Frequently Asked Questions
Learn More About AI Agent Skills
More Premium Skills
cinematic-sites
Turn any basic business URL into a high-end cinematic landing page with AI-generated 4K assets and GSAP animations.
endless-loop
Autonomous research and task loop that builds on previous findings to solve complex objectives while you sleep.
skill-router-2
Automatically detect, load, and stack the perfect skills combo for any user request.
designing-hybrid-context-layers
Architects the right retrieval strategy for every query — teaching your agent when to use RAG, a knowledge graph, or a temporal index instead of defaulting to vector search for everything.