fix: e2e flake (#25578)

This commit is contained in:
Anik Dhabal Babu authored and GitHub committed 2025-12-03 16:07:27 -03:00
1 parent 8aaa84142b
commit 2a7439b58d
1 file changed
+7
+7
View File
@@ -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]);
}