# Playwright E2E Test Credentials
# Customize these for your application.
#
# Setup:
#   1. Fill in your test user credentials below
#   2. Export credentials as environment variables:
#        export E2E_USERNAME=your-email@example.com
#        export E2E_PASSWORD=your-password
#   3. For multi-user tests, add more users with unique names
#   4. Run: npx playwright test --project=setup
#
# API login (preferred): Set `api` to your login endpoint
#   The auth.setup.ts will call POST {api} with username + password
#   Example: api: /api/auth/login
#
# UI login (fallback): Leave `api` empty
#   The auth.setup.ts will open the browser and fill the login form
#   Make sure selectors in auth.setup.ts match your login page

api: /api/auth/login  # Leave empty for UI login

users:
  - name: user
    username: CHANGE_ME@example.com
    password: CHANGE_ME_PASSWORD

  # Multi-user example (uncomment and configure for role-based tests):
  # - name: admin
  #   username: CHANGE_ME@admin.com
  #   password: CHANGE_ME_ADMIN_PASSWORD
  # - name: premium
  #   username: CHANGE_ME@premium.com
  #   password: CHANGE_ME_PREMIUM_PASSWORD
