5 Commits (master)

Author SHA1 Message Date
oabrivard 7558dcf049 fix: run seed.ts before E2E tests to create test users and sessions
Without seeding, loginAsUser/loginAsAdmin cookies are invalid and
all tests redirect to /login.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
3 months ago
oabrivard 0874650a7f fix: pipeline tests use wiremock URLs + skip SSRF for localhost
- Add SKIP_SSRF_CHECK env var to bypass SSRF in test environments
- Use wiremock server as source URL (same domain as article URLs)
- Add source page mock to wiremock setup
- Set SKIP_SSRF_CHECK=1 in integration test script
- Fix unused import warning

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
3 months ago
oabrivard aee70b37d4 fix: use docker-compose.test.yml for integration test DB
Rewrite run-integration-tests.sh to use the e2e docker-compose config
(Postgres on port 5433). Add --db-check flag for connectivity debugging.
Remove build_test_router (reverted to build_router). Keep minimal_test
for oneshot debugging.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
3 months ago
oabrivard cda9e2fc25 fix: pass all args to cargo test in integration test script
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
3 months ago
oabrivard de8e5ab85c feat: add test runner scripts for integration and E2E tests
- scripts/run-integration-tests.sh: spins up Postgres, runs cargo tests
- scripts/run-e2e-tests.sh: builds Docker, starts stack, runs Playwright
- fix: remove SESSION_SECRET from e2e docker-compose.test.yml

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
3 months ago