From 5d61553e0266668d4086da0324d87e6457046d22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Mon, 18 May 2026 00:14:47 +0200 Subject: [PATCH] Fix E2E: click Export Plan (not Export Route) for GPX with waypoints The Export GPX button shows a dropdown; "Export Route" omits waypoints while "Export Plan" includes them with notes. Co-Authored-By: Claude Sonnet 4.6 --- e2e/planner.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/e2e/planner.test.ts b/e2e/planner.test.ts index 464a88d..7c47452 100644 --- a/e2e/planner.test.ts +++ b/e2e/planner.test.ts @@ -504,9 +504,10 @@ test.describe("Planner", () => { // Give Yjs a moment to flush the transaction await page.waitForTimeout(300); - // Export GPX and verify appears inside a - const downloadPromise = page.waitForEvent("download"); + // Export GPX plan (which includes waypoints) and verify appears inside a await page.getByRole("button", { name: "Export GPX" }).click(); + const downloadPromise = page.waitForEvent("download"); + await page.getByRole("button", { name: /Export Plan/i }).click(); const download = await downloadPromise; const gpxStream = await download.createReadStream(); const chunks: Buffer[] = [];