aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/standalone-file-test.js2
1 files changed, 1 insertions, 1 deletions
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');