mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-21 14:36:31 +00:00
fix(help): the leg mode lands when the menu closes, not when one icon changes
This commit is contained in:
@@ -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)
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user