fix: e2e flake (#25578)
This commit is contained in:
1 parent
8aaa84142b
commit
2a7439b58d
1 file changed
+7
@@ -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]);
|
||||
}
|
||||
Reference in new issue
Block a user