722b1e78ed
- Introduced Playwright configuration for e2e testing. - Implemented authentication tests to validate login functionality. - Created tests for GRN (Goods Receipt Note) to ensure proper stock handling. - Developed production run tests to verify lifecycle and stock posting. - Added stock transfer tests to check movement between warehouses. - Implemented stock adjustment tests for positive and negative adjustments. - Established API seeder for test data setup and verification. - Enhanced utility functions for UI interactions and response handling.
15 lines
718 B
Bash
15 lines
718 B
Bash
# Copy to .env.e2e and fill in real values. Never commit .env.e2e.
|
|
|
|
# Frontend origin the browser navigates to (Next.js proxies /api/v1/* server-side from here).
|
|
E2E_BASE_URL=http://localhost:3000
|
|
|
|
# Backend origin, used only to build absolute API paths in error messages / docs; all
|
|
# actual requests go through E2E_BASE_URL's same-origin /api/v1 proxy.
|
|
E2E_API_URL=http://localhost:5224
|
|
|
|
# Credentials for a real AuthHex-backed user with access to Receiving, Production, and
|
|
# Stock modules. AuthHex is an external identity provider (see docs/11-BACKEND-PHASE1.md
|
|
# §2.0) - there is no local seed for this account, it must already exist upstream.
|
|
E2E_ADMIN_EMAIL=e2e-tester@example.com
|
|
E2E_ADMIN_PASSWORD=change-me
|