trails/e2e
Ullrich Schäfer e7a0c132b9
Add e2e tests for Planner callback → geometry stored atomically
Introduces two E2E=true-gated test endpoints:
- POST /api/e2e/seed — creates a test user + bare route, returns routeId + JWT
- GET /api/e2e/route/:id — returns { hasGeom } for post-callback assertions

Three new integration tests:
- valid GPX via callback stores geometry (hasGeom = true)
- invalid GPX (< 2 track points) returns 400, geometry not stored
- missing token returns 401

CI: E2E=true added to the "Run E2E tests" step so the seed endpoints
are enabled when react-router-serve runs during the Playwright job.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-10 15:18:33 +02:00
..
fixtures Stabilize e2e against Vite dev hydration race 2026-05-08 01:06:27 +02:00
auth.test.ts Drop workers=1 — hydration helper is sufficient 2026-05-08 01:10:15 +02:00
demo-bot.test.ts Fix e2e fallout from default-private profile_visibility 2026-04-25 23:46:56 +02:00
explore.test.ts Stabilize e2e against Vite dev hydration race 2026-05-08 01:06:27 +02:00
integration.test.ts Add e2e tests for Planner callback → geometry stored atomically 2026-05-10 15:18:33 +02:00
journal.test.ts Rebuild the Journal home around a public feed and flagship marketing 2026-04-24 20:00:23 +02:00
notifications.test.ts Stabilize e2e against Vite dev hydration race 2026-05-08 01:06:27 +02:00
planner.test.ts Block unmocked external requests in E2E tests 2026-04-19 22:42:29 +02:00
public-content.test.ts Stabilize e2e against Vite dev hydration race 2026-05-08 01:06:27 +02:00
settings.test.ts Redesign navbar with avatar dropdown and mobile drawer 2026-04-26 09:56:20 +02:00
social.test.ts Stabilize e2e against Vite dev hydration race 2026-05-08 01:06:27 +02:00