Fix E2E: click ▾ chevron to open export dropdown, not Export GPX button

The Export GPX text button directly downloads a route-only GPX.
The ▾ chevron opens the dropdown with Export Plan (includes waypoints).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ullrich Schäfer 2026-05-18 00:25:10 +02:00
parent 9cd08f0ebb
commit 1ad5c6be52
No known key found for this signature in database
GPG key ID: A32FF691A0F752D9

View file

@ -504,9 +504,8 @@ test.describe("Planner", () => {
// Give Yjs a moment to flush the transaction
await page.waitForTimeout(300);
// Export GPX plan (which includes waypoints) and verify <desc> appears inside a <wpt>
await page.getByRole("button", { name: "Export GPX" }).click();
// Wait for the dropdown to open, then click Export Plan
// Open the export dropdown (▾ chevron next to Export GPX), then click Export Plan
await page.getByRole("button", { name: "▾" }).click();
await expect(page.getByText("Export Plan")).toBeVisible({ timeout: 3000 });
const downloadPromise = page.waitForEvent("download");
await page.getByText("Export Plan").first().click();