Breaks the monolithic planner.test.ts (581 lines, 25 tests) into five focused files grouped by feature area, with BRouter mocked by default via test.beforeEach in files that need routing. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
843 B
843 B
1. Shared helper
- 1.1 Create
e2e/helpers/planner.tswithcreateSession(request)andopenSession(page, url)helpers
2. Split test files
- 2.1 Create
e2e/planner-session.test.ts— home page, session creation, basic session UI, GPX import (14 tests) - 2.2 Create
e2e/planner-routing.test.ts— route splitting, zoom to fit, waypoint notes, POI snap (4 tests, BRouter mocked in beforeEach) - 2.3 Create
e2e/planner-multiday.test.ts— overnight toggle, multi-day GPX export (2 tests, BRouter mocked in beforeEach) - 2.4 Create
e2e/planner-overlays.test.ts— hillshading tiles, POI category markers (2 tests) - 2.5 Create
e2e/planner-coloring.test.ts— color mode, road type chart, hover label (3 tests, BRouter mocked in beforeEach)
3. Clean up
- 3.1 Delete
e2e/planner.test.ts