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[] = [];