test(e2e): wait for the capture picker to close before opening More

The mobile smoke test pressed Escape on the capture picker and tapped
the More button straight away. While the picker's close animation still
covers the bottom nav, that tap lands on the overlay and the hub never
opens, which failed the lucide-react update once. The test now waits
until the picker is hidden.
This commit is contained in:
Marc-André Bombeck committed 2026-09-13 23:24:02 +02:00
1 parent 755d48444f
commit 203f1135a2
1 file changed
+4 -1
+4 -1
View File
@@ -213,8 +213,11 @@ test.describe("mobile-viewport smoke", () => {
for (const kind of ["measurement", "medication", "mood"]) {
await expect(page.getByTestId(`capture-picker-${kind}`)).toBeVisible();
}
// Dismiss the picker before opening the hub.
// Dismiss the picker before opening the hub, and wait until it is gone:
// while its close animation runs, the overlay still covers the bottom
// nav and swallows the tap on "More", so the hub never opens.
await page.keyboard.press("Escape");
await expect(page.getByTestId("capture-picker-options")).toBeHidden();
// 2) The More hub keeps Mood + Measurements reachable (additive
// middle-path — they left the strip but are NOT orphaned).