From ee06f576143fd227bbbb61a14d554fe98791c3d8 Mon Sep 17 00:00:00 2001 From: Neven Dyulgerov Date: Fri, 3 Jan 2025 17:32:47 +0200 Subject: [PATCH] test(apps/web): Fix flaky e2e test --- apps/web/e2e/pages/inputs.spec.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/web/e2e/pages/inputs.spec.ts b/apps/web/e2e/pages/inputs.spec.ts index 8fde26ef4..49b14957a 100644 --- a/apps/web/e2e/pages/inputs.spec.ts +++ b/apps/web/e2e/pages/inputs.spec.ts @@ -72,11 +72,12 @@ test("should search for specific input", async ({ page }) => { .getByRole("paragraph"); const addresses = await fromAddress.all(); - addresses.map(async (address) => { + + for (const address of addresses) { const linkHref = (await address.textContent()) as string; expect( linkHref.toLowerCase().startsWith(addressPrefix.toLowerCase()), ).toBe(true); - }); + } });