fix: remove timeout to check data-wf-loaded

This commit is contained in:
Amruth Pillai
2026-04-29 21:38:40 +02:00
parent b9894c687c
commit 4cf5cdd181
+2 -2
View File
@@ -187,7 +187,7 @@ async function doPrintResumeAsPDF(
),
);
await page
.waitForFunction(() => document.body.getAttribute("data-wf-loaded") === "true", { timeout: 5_000 })
.waitForFunction(() => document.body.getAttribute("data-wf-loaded") === "true")
.catch((error) =>
throwPrinterStepError(
"Resume print page did not finish loading",
@@ -522,7 +522,7 @@ async function doGetResumeScreenshot(
),
);
await page
.waitForFunction(() => document.body.getAttribute("data-wf-loaded") === "true", { timeout: 5_000 })
.waitForFunction(() => document.body.getAttribute("data-wf-loaded") === "true")
.catch((error) =>
throwPrinterStepError(
"Resume screenshot page did not finish loading",