Skip to content

Commit 2a7439b

Browse files
authored
fix: e2e flake (calcom#25578)
1 parent 8aaa841 commit 2a7439b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

apps/web/playwright/out-of-office.e2e.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,5 +757,12 @@ async function goToOOOPage(page: Page, type: "individual" | "team" = "individual
757757
}
758758

759759
async function openOOODialog(page: Page) {
760+
const reasonListRespPromise = page.waitForResponse(
761+
(response) => response.url().includes("outOfOfficeReasonList?batch=1") && response.status() === 200
762+
);
763+
const hasTeamPlanRespPromise = page.waitForResponse(
764+
(response) => response.url().includes("hasTeamPlan?batch=1") && response.status() === 200
765+
);
760766
await page.getByTestId("add_entry_ooo").click();
767+
await Promise.all([reasonListRespPromise, hasTeamPlanRespPromise]);
761768
}

0 commit comments

Comments
 (0)