1

    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.

    Updated Jun 2026
    Instant install
    Cursor

    $8

    · or 40 credits

    30-day refund guarantee

    Secure 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

    Reviews

    No reviews yet - be the first to share your experience.

    Only users who have downloaded or purchased this skill can leave a review.

    Security Scanned

    Passed automated security review

    Permissions

    Terminal / Shell
    Browser
    Environment Variables

    Allowed Hosts

    playwright.dev
    testing-library.com

    File Scopes

    playwright-e2e-test-generator/**

    Compatible with SKILL.md-compatible agents including Claude Code, Cursor, and Windsurf.

    Creator

    Frequently Asked Questions

    More Premium Skills

    $8