shipshitdev/library
Playwright E2e Init
4 020e ex aequo sur 4 265 skills du métier Développement, par installations. Dans l'annuaire depuis le 18 novembre 2026.
Description
Met en place Playwright pour les tests de bout en bout dans les projets Next.js et React, de l'installation des navigateurs à la création de tests d'exemple et à l'intégration CI/CD. Vous obtenez un playwright.config.ts configuré avec des valeurs par défaut raisonnables.
Voir la description originale (anglais)
Sets up Playwright for end-to-end testing in Next.js and React projects, handling everything from installing browsers to creating example tests and CI/CD integration. You get a configured playwright.config.ts with sensible defaults, an e2e directory with tests for authentication and navigation flows, and npm scripts ready to go. The config includes automatic retries in CI, screenshot capture on failures, and a local dev server that spins up before running tests. Best part is it creates actual working tests you can build from, not empty boilerplate. Use this when you need to test critical user flows like login or checkout, especially if you're adding E2E coverage to an existing project that only has unit tests.
Installer le skill
- 1Copiez la commande d'installation (bouton Copier, en haut de la fiche).
- 2Lancez-la dans un terminal, sur la machine où vous utilisez Claude Code.
- 3Demandez la tâche à Claude comme d'habitude : il charge le skill quand la demande s'y prête.