From 3ff4245f6fb4ef66429fbbd1cd0adc9b3686e136 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Sat, 11 Apr 2026 02:23:35 +0200 Subject: [PATCH] Fix E2E: mock BRouter for GPX day breaks test The test dropped GPX with far-apart waypoints (Berlin/Dessau/Erfurt) which timed out waiting for BRouter on CI. Switched to nearby Berlin waypoints and added mockBRouter for instant deterministic routing. Co-Authored-By: Claude Opus 4.6 (1M context) --- e2e/planner.test.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/e2e/planner.test.ts b/e2e/planner.test.ts index 529678d..814e47c 100644 --- a/e2e/planner.test.ts +++ b/e2e/planner.test.ts @@ -269,16 +269,18 @@ test.describe("Planner", () => { const sessionResp = await request.post("/api/sessions", { data: {} }); const { url } = await sessionResp.json(); + await mockBRouter(page); + // Import a GPX with overnight waypoints const gpx = ` Berlin - Dessauovernight - Erfurt + Mitteovernight + Kreuzberg 34 - 80 - 195 + 40 + 35 `;