From bf42c148664cc97c6b3fd0c66014883de875adc7 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 1 Oct 2026 16:35:22 -0700 Subject: standalone-file-test takes a path, to check a downloaded copy. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01VP5Ljqk7EYcm5QQAbzDwog --- tools/standalone-file-test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/standalone-file-test.js b/tools/standalone-file-test.js index cb30565..9254481 100644 --- a/tools/standalone-file-test.js +++ b/tools/standalone-file-test.js @@ -12,7 +12,7 @@ try { page.on('pageerror', (e) => errors.push(String(e))); page.on('requestfailed', (r) => { if (r.url().startsWith('file:')) failed.push(r.url()); }); await page.setViewport({ width: 390, height: 844 }); - await page.goto('file://' + resolve('dist/standalone.html')); + await page.goto('file://' + resolve(process.argv[2] || 'dist/standalone.html')); await sleep(1500); const click = (x) => page.evaluate((x) => { const e = [...document.querySelectorAll('button')].find((n) => n.textContent.trim().toLowerCase().includes(x)); e?.click(); return !!e; }, x); assert(await page.evaluate(async () => { await document.fonts.ready; return document.fonts.check('16px "Public Sans"') && [...document.fonts].some((f) => f.status === 'loaded'); }), 'the embedded font loads'); -- cgit v1.2.3