fix flaky e2e test
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user