fix flaky e2e test
This commit is contained in:
@@ -6,3 +6,4 @@
|
|||||||
/e2e/node_modules/
|
/e2e/node_modules/
|
||||||
/e2e/test-results/
|
/e2e/test-results/
|
||||||
/e2e/playwright-report/
|
/e2e/playwright-report/
|
||||||
|
/test-results/
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ test("the add-meal picker closes when clicking outside", async ({ page }) => {
|
|||||||
const picker = page.locator(".meal-picker-backdrop");
|
const picker = page.locator(".meal-picker-backdrop");
|
||||||
await expect(picker).toBeVisible();
|
await expect(picker).toBeVisible();
|
||||||
|
|
||||||
// Click the backdrop itself (outside the modal card).
|
// Click the backdrop itself (outside the modal card), at the viewport corner.
|
||||||
await picker.click({ position: { x: 5, y: 5 } });
|
await page.mouse.click(10, 10);
|
||||||
await expect(picker).toHaveCount(0);
|
await expect(picker).toHaveCount(0);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user