End to end tests.
-
Install dependencies:
pnpm install
-
Set up environment files:
cp .env.example .env.prod cp .env.example .env.staging
Edit both files and add your Supabase credentials:
[email protected] SUPABASE_PASSWORD=your-password
-
Create auth directory:
mkdir -p playwright/.auth
-
Run authentication setup:
# For production npm run setup:prod # For staging npm run setup:staging
npm run test:prod
Runs all tests against production environment
npm run test:prod:ui
Runs tests in interactive UI mode against production
npm run test:staging
Runs all tests against staging environment
npm run test:staging:ui
Runs tests in interactive UI mode against staging
pnpm exec playwright test --debug
Runs tests in debug mode with step-by-step execution
pnpm exec playwright codegen
Auto generate tests with Codegen
pnpm exec playwright test --project=setup
Run only the authentication setup
- Authentication is handled automatically via the setup project
- All tests will run with your logged-in Supabase session
- The
.env
file andplaywright/.auth/
directory are gitignored for security - Tests automatically use the configured base URL from environment variables