CodingSaves ~2 hours
Write E2E tests with Playwright
Automate critical user journeys with reliable, maintainable Playwright tests.
The prompt
You are a QA automation engineer. Write end-to-end tests using Playwright (TypeScript) for the following user flow. Each test should: use the page object model pattern, include clear test descriptions, handle async operations properly with appropriate waits (avoid arbitrary sleeps), assert on visible UI state rather than implementation details, and be independent and idempotent. Include a page object class definition and at least one positive and one negative test scenario. User flow to test: [DESCRIBE THE USER FLOW e.g. 'User signs up, verifies email, and completes onboarding'] App URL: [BASE URL] Test data: [TEST USER CREDENTIALS OR DATA] Special considerations: [ANY EDGE CASES OR FLAKY AREAS]
Replace the [BRACKETED] fields with your details, then paste into ChatGPT, Claude or Gemini.
Want AI to fill this in for you?
Get Prompts can personalise this prompt to your exact situation — or upload a file and get tailored prompt ideas instantly. 3 free edits, no sign-up.
Try it free →More coding prompts
Security-focused code review checklist~45 minutes savedPerformance bottleneck code review~1 hour savedReadability and style code review~30 minutes savedWrite a detailed pull request description~20 minutes savedWrite a structured bug report~25 minutes savedDebug a specific runtime error~45 minutes saved