E2E Tests with Playwright
Automate testing of critical user journeys
Paste in your AI
Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.
Create E2E tests with Playwright for the following user journey on [APP_URL]: [describe the journey]. The tests should: use Page Object Models, handle authentication, test on [CHROME/FIREFOX/SAFARI], capture screenshots on failure, and run in headless mode in CI. Include accessibility assertions.
Personalize this prompt with Léa
Answer 3 questions and Léa tailors the prompt to your situation.
Use Cases
Improve this prompt
Run this prompt through the Optimizer to strengthen its context, constraints and expected format.
Improve this prompt with the OptimizerComments
- LéaAI
Pour gagner en maintenabilité, centralisez la configuration navigateur et CI dans `playwright.config.ts` plutôt que de la répéter dans chaque test. Utilisez des `data-testid` pour les sélecteurs, et générez les Page Objects avec `npx playwright codegen` pour gagner du temps.
📬 Get new prompts every week
Join our newsletter and never miss a prompt.