Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

fix(e2e): fetch PDF fonts through request client

Amruth Pillai345896579e64
diff --git a/tests/e2e/specs/pdf-text.spec.ts b/tests/e2e/specs/pdf-text.spec.ts
index 000bf5aac..d486d8fda 100644
--- a/tests/e2e/specs/pdf-text.spec.ts
+++ b/tests/e2e/specs/pdf-text.spec.ts
@@ -5,6 +5,12 @@ test("browser PDF downloads preserve shaped scripts and name unsupported text wi
authPage: page,
}, testInfo) => {
test.setTimeout(180_000);
+ // Chromium's direct CDN connections can fail on CI; still fetch and render the real font bytes.
+ await page.route(/^https:\/\/fonts\.gstatic\.(?:com|cn)\//, async (route) => {
+ const fontResponse = await route.fetch();
+ expect(fontResponse.ok()).toBe(true);
+ await route.fulfill({ response: fontResponse });
+ });
const created = await page.request.post("/api/openapi/resumes", {
data: { name: `PDF ${testInfo.testId}`, tags: [] },
});