aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-01 16:35:22 -0700
committerAdam Soltys <[email protected]>2026-10-01 16:35:22 -0700
commitbf42c148664cc97c6b3fd0c66014883de875adc7 (patch)
treedae065fc38f3fc73573618377179b95213741eb7 /tools
parent66d41d1aa1f5c60cd63b1691ba6bf70e88cf78fa (diff)
downloadcoinosv3-bf42c148664cc97c6b3fd0c66014883de875adc7.tar.gz
coinosv3-bf42c148664cc97c6b3fd0c66014883de875adc7.zip
standalone-file-test takes a path, to check a downloaded copy.
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VP5Ljqk7EYcm5QQAbzDwog
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');