fix flaky e2e test

This commit is contained in:
2026-08-01 23:05:20 -04:00
parent 7309971c74
commit fbb49bc560
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -6,3 +6,4 @@
/e2e/node_modules/
/e2e/test-results/
/e2e/playwright-report/
/test-results/
+2 -2
View File
@@ -48,7 +48,7 @@ test("the add-meal picker closes when clicking outside", async ({ page }) => {
const picker = page.locator(".meal-picker-backdrop");
await expect(picker).toBeVisible();
// Click the backdrop itself (outside the modal card).
await picker.click({ position: { x: 5, y: 5 } });
// Click the backdrop itself (outside the modal card), at the viewport corner.
await page.mouse.click(10, 10);
await expect(picker).toHaveCount(0);
});