From e8637f720855a8edeca59bb4f614b19522d6dde3 Mon Sep 17 00:00:00 2001 From: Maurice Date: Tue, 22 Sep 2026 05:36:21 +0000 Subject: [PATCH] fix(help): the leg mode lands when the menu closes, not when one icon changes --- client/e2e/help/trip-transports.guide.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 = { 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) }, },