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 <noreply@anthropic.com>
This commit is contained in:
Ullrich Schäfer 2026-05-18 00:14:47 +02:00
parent b4dd01db41
commit 5d61553e02
No known key found for this signature in database
GPG key ID: A32FF691A0F752D9

View file

@ -504,9 +504,10 @@ test.describe("Planner", () => {
// Give Yjs a moment to flush the transaction // Give Yjs a moment to flush the transaction
await page.waitForTimeout(300); await page.waitForTimeout(300);
// Export GPX and verify <desc> appears inside a <wpt> // Export GPX plan (which includes waypoints) and verify <desc> appears inside a <wpt>
const downloadPromise = page.waitForEvent("download");
await page.getByRole("button", { name: "Export GPX" }).click(); 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 download = await downloadPromise;
const gpxStream = await download.createReadStream(); const gpxStream = await download.createReadStream();
const chunks: Buffer[] = []; const chunks: Buffer[] = [];