mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-14 06:40:50 +00:00
Merge pull request #976 from MBombeck/fix/e2e-more-hub-after-picker
test(e2e): wait for the capture picker to close before opening More
This commit is contained in:
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