diff --git a/packages/e2e-web-tests/tests/email.test.ts b/packages/e2e-web-tests/tests/email.test.ts index 1198a16f..5de9d532 100644 --- a/packages/e2e-web-tests/tests/email.test.ts +++ b/packages/e2e-web-tests/tests/email.test.ts @@ -31,9 +31,9 @@ test("contact form", async ({ page }) => { await page.click("button[type=submit]"); // Check the toast - expect( - (await page.waitForSelector('li[data-type="success"]')).isVisible(), - ).toBeTruthy(); + await expect( + page.locator('li[data-type="success"]'), + ).toBeVisible({ timeout: 6000 }); }); test("invalid email", async ({ page }) => {