- DB erp_test isolée (ports 3002/5174, erp_local intouché) - seed-test.ts déterministe: 3 users, 2 clients, 2 suppliers, 2 orders, 59 help articles - globalSetup truncate+reseed, webServer dual backend+frontend - 10 smoke tests: login, RBAC, orders, documents, help drawer, Ctrl+/ - Réorganisation tests/: e2e/ (Playwright) vs backend/ (vitest) - cross-env + dotenv pour portabilité Windows/Linux - vite.config.ts proxy dynamique via BACKEND_PORT env var Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
10 lines
325 B
Plaintext
10 lines
325 B
Plaintext
# .env.test.example — template for Playwright E2E tests
|
|
# Copy to .env.test and fill in values
|
|
E2E_DATABASE_URL="postgresql://metallkart:<REPLACE_ME>@localhost:5432/erp_test"
|
|
E2E_BACKEND_PORT=3002
|
|
E2E_FRONTEND_PORT=5174
|
|
|
|
JWT_SECRET="test_jwt_secret_2026_only_for_e2e"
|
|
STORAGE_PATH="/tmp/erp-test-uploads"
|
|
SMTP_DRY_RUN=true
|