From c1416173e8f2010938fabc3ac028c6a83d40c24f Mon Sep 17 00:00:00 2001 From: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com> Date: Wed, 8 May 2024 18:07:30 -0400 Subject: [PATCH] attempt to fix flaky e2e test (#14949) Co-authored-by: CarinaWolli --- apps/web/playwright/webhook.e2e.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/web/playwright/webhook.e2e.ts b/apps/web/playwright/webhook.e2e.ts index f3aae9fb8b..7987556a3b 100644 --- a/apps/web/playwright/webhook.e2e.ts +++ b/apps/web/playwright/webhook.e2e.ts @@ -578,6 +578,8 @@ test.describe("FORM_SUBMITTED", async () => { ], }); + await page.waitForLoadState("networkidle"); + await gotoRoutingLink({ page, formId: form.id }); const fieldName = "name"; await page.fill(`[data-testid="form-field-${fieldName}"]`, "John Doe"); @@ -637,6 +639,8 @@ test.describe("FORM_SUBMITTED", async () => { ], }); + await page.waitForLoadState("networkidle"); + await gotoRoutingLink({ page, formId: form.id }); const fieldName = "name"; await page.fill(`[data-testid="form-field-${fieldName}"]`, "John Doe");