Skip to content

supabase-community/e2e

Repository files navigation

Supabase e2e

End to end tests.

Setup

  1. Install dependencies:

    pnpm install
  2. 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
    
  3. Create auth directory:

    mkdir -p playwright/.auth
  4. Run authentication setup:

    # For production
    npm run setup:prod
    
    # For staging
    npm run setup:staging

Running Tests

Production Environment

npm run test:prod
  Runs all tests against production environment

npm run test:prod:ui
  Runs tests in interactive UI mode against production

Staging Environment

npm run test:staging
  Runs all tests against staging environment

npm run test:staging:ui
  Runs tests in interactive UI mode against staging

Additional Commands

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

Notes

  • Authentication is handled automatically via the setup project
  • All tests will run with your logged-in Supabase session
  • The .env file and playwright/.auth/ directory are gitignored for security
  • Tests automatically use the configured base URL from environment variables

About

End to end tests for Supabase

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •