Skip to content

Commit

Permalink
Disabling font loading
Browse files Browse the repository at this point in the history
  • Loading branch information
AlfieJones committed May 23, 2024
1 parent 611411b commit 7cd62c3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/itchy-dragons-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@pixeleye/cli-capture": patch
---

Disabling playwrights built in wait for font loading
4 changes: 4 additions & 0 deletions integrations/cli/cli-capture/src/capture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,12 @@ async function internalCaptureScreenshot(

await page.goto(data.url, {
timeout: 60_000,
waitUntil: "domcontentloaded",
});

// eslint-disable-next-line turbo/no-undeclared-env-vars
process.env["PW_TEST_SCREENSHOT_NO_FONTS_READY"] = "true";

await (page as Page).addScriptTag({
path: rrwebScript,
});
Expand Down

0 comments on commit 7cd62c3

Please sign in to comment.