From 545a9752885eea6e762a58b8c6baccc6fc64f6f1 Mon Sep 17 00:00:00 2001 From: FleetAdmiralJakob Date: Tue, 16 Jan 2024 16:49:56 +0100 Subject: [PATCH] fix: Fixed the Playwright Tests --- packages/e2e-web-tests/tests/email.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 }) => {