Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

fix(help): the leg mode lands when the menu closes, not when one icon changes

Mauricee8637f720855
diff --git a/client/e2e/help/trip-transports.guide.ts b/client/e2e/help/trip-transports.guide.ts
index 03ccedccf..02b1e2444 100644
--- a/client/e2e/help/trip-transports.guide.ts
+++ b/client/e2e/help/trip-transports.guide.ts
@@ -357,7 +357,10 @@ const SCRIPTS: Record<string, GuideScript> = {
target: p => legMenu(p).getByRole('button', { name: 'Walking' }),
act: async p => {
await legMenu(p).getByRole('button', { name: 'Walking' }).click()
- await expect(connector(p).locator('svg.lucide-footprints')).toBeVisible({ timeout: 30_000 })
+ // The menu closing is the change landing. Not the icon on the first
+ // leg: the day re-routes when a mode changes, and which leg comes
+ // first is not fixed while it does.
+ await expect(legMenu(p)).toHaveCount(0, { timeout: 20_000 })
await settle(p)
},
},