mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 04:32:42 +00:00
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:
1 parent
755d48444f
commit
203f1135a2
1 file changed
+4
-1
@@ -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).
|
||||
|
||||
Reference in new issue
Block a user