Spec updates: - route-coloring: Added speed limit, smoothness, track type, cycleway, and bike route modes. Added OSM wiki links, BRouter profile patching, dropdown order, bike route human-readable legends. New follow-up changes (proposals only): - elevation-map-interaction: Bidirectional chart ↔ map interaction (route hover → chart, chart click → pan, chart drag → zoom) - e2e-test-reorganization: Mock BRouter by default, split tests by feature, shared helpers - journal-poi-details: Surface POI metadata in Journal route detail (phone, address, website, opening hours from snapped waypoints) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1.2 KiB
1.2 KiB
Why
The planner E2E test file (e2e/planner.test.ts) has grown to 42+ tests in a single describe block. Tests that need a computed route manually call mockBRouter(page) — this is opt-in and easy to forget, leading to flaky tests when BRouter is slow. Test setup is duplicated across tests (create session, goto URL, wait for connected).
What Changes
- Mock BRouter by default: Use a shared Playwright fixture or
beforeEachthat mocks BRouter for all planner tests. Only integration tests that explicitly test the real BRouter pipeline should use the real endpoint. - Split by feature: Break
planner.test.tsinto focused files:planner-session.test.ts,planner-routing.test.ts,planner-multiday.test.ts,planner-overlays.test.ts,planner-coloring.test.ts - Shared test helpers: Extract common patterns (create session + goto + wait for connected) into a reusable helper
Capabilities
Modified Capabilities
- Testing infrastructure only — no user-facing changes
Impact
e2e/planner.test.ts→ split into 5-6 filese2e/fixtures/brouter-mock.ts→ becomes default fixture- New
e2e/helpers/planner.tsfor shared setup playwright.config.tsmay need testMatch updates