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:
parent
9cd08f0ebb
commit
1ad5c6be52
1 changed files with 2 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue