From 2a7439b58de09b5f9299bc04913a4b18d3b20d4d Mon Sep 17 00:00:00 2001 From: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com> Date: Thu, 4 Dec 2025 00:37:27 +0530 Subject: [PATCH] fix: e2e flake (#25578) --- apps/web/playwright/out-of-office.e2e.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/web/playwright/out-of-office.e2e.ts b/apps/web/playwright/out-of-office.e2e.ts index ce39645d1e..7093b7b64e 100644 --- a/apps/web/playwright/out-of-office.e2e.ts +++ b/apps/web/playwright/out-of-office.e2e.ts @@ -757,5 +757,12 @@ async function goToOOOPage(page: Page, type: "individual" | "team" = "individual } async function openOOODialog(page: Page) { + const reasonListRespPromise = page.waitForResponse( + (response) => response.url().includes("outOfOfficeReasonList?batch=1") && response.status() === 200 + ); + const hasTeamPlanRespPromise = page.waitForResponse( + (response) => response.url().includes("hasTeamPlan?batch=1") && response.status() === 200 + ); await page.getByTestId("add_entry_ooo").click(); + await Promise.all([reasonListRespPromise, hasTeamPlanRespPromise]); }