Skip to content

feat: e2e testing dev bypass#7

Open
ChristopherHoffman wants to merge 4 commits intomainfrom
feat/e2e-dev-bypass
Open

feat: e2e testing dev bypass#7
ChristopherHoffman wants to merge 4 commits intomainfrom
feat/e2e-dev-bypass

Conversation

@ChristopherHoffman
Copy link
Copy Markdown
Contributor

Summary

  • Add E2EDataSeeder with minimal seed data (1 user, 1 printer, 3 prints) for Cypress e2e tests — keeps the existing DataSeeder
    intact for load testing
  • Extend DevAuthenticationHandler registration to cover ASPNETCORE_ENVIRONMENT=E2ETesting (was Development-only), enabling the
    dev bypass header (X-Dev-User-Id: 1) in e2e runs
  • Add appsettings.E2ETesting.example.json template (no secrets, port 1433); gitignore the actual settings file following the same
    pattern as appsettings.Development.json

Test Plan

  • Copy PrintLogApi/appsettings.E2ETesting.example.jsonPrintLogApi/appsettings.E2ETesting.json
  • Start SQL Server via docker-compose up -d
  • Run API with the "E2E Testing" launch profile (ASPNETCORE_ENVIRONMENT=E2ETesting) — confirm DB is dropped, migrated, and
    seeded with 1 user / 1 printer / 3 prints
  • Run UI Cypress tests (npm run e2e) — confirm all specs pass without Auth0 credentials

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant