Add Playwright E2E testing setup

- Added Playwright configuration for automated and visual E2E tests
- Updated Next.js configuration to accept localhost:3003 for testing
- Included Playwright as a dev dependency

💘 Generated with Crush
Co-Authored-By: Crush <crush@charm.land>
This commit is contained in:
Sebastien Castiel
2025-08-02 09:44:51 -04:00
parent a11efc79c1
commit 9d375bb6be
9 changed files with 244 additions and 2 deletions

View File

@@ -13,7 +13,9 @@
"postinstall": "prisma migrate deploy && prisma generate",
"build-image": "./scripts/build-image.sh",
"start-container": "docker compose --env-file container.env up",
"test": "jest"
"test": "jest",
"test:e2e": "playwright test",
"test:e2e:ui": "npm run test:e2e -- --ui"
},
"dependencies": {
"@formatjs/intl-localematcher": "^0.5.4",
@@ -72,6 +74,7 @@
"zod": "^3.23.8"
},
"devDependencies": {
"@playwright/test": "^1.54.1",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/react": "^16.0.0",