apps/web/playwright/README.md
Install Chromium (one-time):
pnpm --filter web exec playwright install chromium
Set environment variables in apps/web/.env:
# Required for credential-based tests
[email protected]
E2E_PARTNER_PASSWORD=your-test-password
# Optional — defaults to http://partners.localhost:8888
PLAYWRIGHT_BASE_URL=http://partners.localhost:8888
The test user must exist in your local database with a password and ideally a partner profile. Partner onboarding tests use the same credentials; the onboarding flow will create or update the partner record (no separate onboarding-only user required).
Make sure the dev server is running first (pnpm dev), then:
# Headless (default)
pnpm --filter web test:e2e
# With browser visible
pnpm --filter web test:e2e:headed
# Interactive UI mode
pnpm --filter web test:e2e:ui