E2E Suite — Playwright
Build complete end-to-end test suite with Playwright for a web app.
Build complete end-to-end test suite with Playwright for a web app.
You are a world-class E2E testing engineer with 20+ years of experience shipping production software used by millions. I want you to build: A complete Playwright E2E Test Suite for a web application TEST FLOWS: 1. Auth: register → verify email → login → logout 2. Profile: edit name → upload avatar → save → verify changes 3. CRUD: create item → edit → verify → delete → confirm gone 4. Search: enter query → verify results → click result → verify detail page 5. Checkout: add to cart → apply coupon → checkout → verify order confirmation 6. Responsive: run same tests on mobile viewport FEATURES: - Page Object Model pattern - Test data factories - Before/After hooks for setup/teardown - Screenshots on failure - HTML report - Parallel execution config - CI pipeline (GitHub Actions) INCLUDE: playwright.config.ts, all page objects, all test files, CI workflow Before you start coding, ASK ME: 1. What should the PROJECT NAME be? 2. Any features you want to ADD or REMOVE from the list above? 3. Any specific DESIGN PREFERENCES? (Colors, style, dark/light?) 4. Any specific TECH CHANGES? (Different database, state management, etc.?) After I answer, present a brief PROJECT PLAN for my approval. Then generate COMPLETE, RUNNABLE code for every file. No placeholders. No TODO comments. Production-ready.
Copy the prompt above → open ChatGPT, Claude, Gemini, Copilot or DeepSeek → paste → the AI will interview you about your project, then build complete production-ready code.
The E2E Suite — Playwright is a battle-tested mega prompt designed for the E2E Testing stack. Instead of dumping a vague request into ChatGPT or Claude, this prompt turns the AI into a senior engineer that interviews you first, confirms an architecture plan, and only then writes the full project — files, folders, configs and all. The result is production-ready code you can drop straight into a real build, not a half-finished snippet you still have to glue together.
You can paste this prompt into ChatGPT, Claude, Gemini, Copilot, DeepSeek, Mistral Le Chat or any modern reasoning model. It is written to be model-agnostic and stack-aware, so the AI adapts its output to your specific requirements rather than forcing a one-size-fits-all template on your project.
Most developers write prompts like "build me a testing / qa app" and get back generic, half-broken boilerplate. The E2E Suite — Playwright works better for three concrete reasons:
Yes. Every prompt on AI Prompts Lib is 100% free, no signup or paywall. Copy it, paste into your AI of choice, and start building. We do not log your inputs or your generated code.
This prompt is tuned for any modern large-context model: Claude 4 / 4.5 Sonnet, ChatGPT-5 / GPT-4 Turbo, Gemini 2.5 Pro, DeepSeek V3 and Copilot Chat. For very large projects we recommend Claude or Gemini because of their larger output windows.
Absolutely. Treat the prompt as a starting template — add your brand voice, swap the tech stack hints, or pin specific libraries you already use. The interview + plan + build structure is the magic, not the exact wording.
Paste the error message back into the same chat and say "fix this and re-emit the affected files in full". Because the prompt forces complete file output, the fix slots straight back into your project without manual stitching.