Research-Stack/4-Infrastructure/k3s-flake/tests/package.json
Brandon Schneider 5f372ea04d test(infra): add Playwright E2E routing test suite
Tests the full traffic path against live researchstack.info infrastructure:
  Edge Caddy (TLS) → Tailscale → Traefik Ingress → k3s services

Coverage:
- edge-tls-redirects: HTTPS reachability, cert validity, legacy subdomain
  301s (status/dash/home/media/books/music/vault/pulse/apps), stable
  subdomains (auth, mail), wildcard fallback
- path-routing: /apps/*, /server/*, /api/* routes; prefix stripping; SSO
  redirect vs token-auth isolation
- auth-integration: Authentik login page, OIDC discovery, forward_auth
  gating on protected paths, /api/* bypass

19/40 tests pass against current live infrastructure (pre-deploy). The 21
failures are "not yet deployed" signals, not design errors. Run after each
phase of the deployment plan to use as a regression gate.

Run: cd 4-Infrastructure/k3s-flake/tests && npm test

Generated with Devin (https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-26 21:03:27 -05:00

16 lines
534 B
JSON

{
"name": "researchstack-e2e-tests",
"version": "1.0.0",
"private": true,
"description": "End-to-end routing tests for Research Stack infrastructure",
"scripts": {
"test": "npx playwright test",
"test:edge": "npx playwright test edge-tls-redirects.spec.ts",
"test:routing": "npx playwright test path-routing.spec.ts",
"test:auth": "npx playwright test auth-integration.spec.ts",
"test:report": "npx playwright show-report test-results"
},
"devDependencies": {
"@playwright/test": "^1.60.0"
}
}