fix: auto-select 2 font weights when picking a new font-family

This commit is contained in:
Amruth Pillai
2026-02-08 18:14:16 +01:00
parent 2f7aabcfe9
commit 2b8fa9c7e8
7 changed files with 144 additions and 97 deletions
@@ -122,6 +122,7 @@ export const printerService = {
const page = await browser.newPage();
// Wait for the page to fully load (network idle + custom loaded attribute)
await page.emulateMediaType("print");
await page.setViewport(pageDimensionsAsPixels[format]);
await page.goto(url, { waitUntil: "networkidle0" });
await page.waitForFunction(() => document.body.getAttribute("data-wf-loaded") === "true", { timeout: 5_000 });