trails/e2e
Ullrich Schäfer e6c68fb71b
Add BRouter mock for deterministic E2E tests
- brouter-mock.ts: Canned route responses for 2 and 3 waypoint sessions,
  plus latLngToPixel helper for pixel-precise map interactions
- planner.test.ts: Route split, map zoom, and overnight tests now use
  mockBRouter() for instant deterministic responses instead of real
  BRouter — fixes all 3 flaky tests
- Used .first() for sidebar km locator to avoid strict mode violations
  when both header summary and stats footer match

All 38 E2E tests pass in 9.7s (was 34s+ with real BRouter).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 01:07:39 +02:00
..
fixtures Add BRouter mock for deterministic E2E tests 2026-04-11 01:07:39 +02:00
auth.test.ts Add passkey authentication E2E tests 2026-03-27 21:33:34 +01:00
integration.test.ts Add E2E tests, Journal map coloring, and remaining unit tests 2026-04-11 00:14:08 +02:00
journal.test.ts Add app navigation bars to Journal and Planner 2026-03-25 03:12:27 +00:00
planner.test.ts Add BRouter mock for deterministic E2E tests 2026-04-11 01:07:39 +02:00
settings.test.ts Add account settings page with passkey management 2026-03-29 10:09:06 +02:00