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:
parent
b4dd01db41
commit
5d61553e02
1 changed files with 3 additions and 2 deletions
|
|
@ -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[] = [];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue