mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-12 06:06:37 +03:00
font-match: a browser module without its binary is the same as no browser
CI resolves playwright but has no downloaded chromium; launch threw instead of falling back to the catalog ranking, and every spec gate downstream failed. Launch failures now return the no-browser path (and the browser test skips instead of asserting). AI-assisted (Claude Code).
This commit is contained in:
@@ -162,7 +162,7 @@ describe('font-match', () => {
|
||||
|
||||
it('renders and ranks candidates against a League Gothic sample (browser)', { skip: !hasPlaywright && 'playwright not resolvable' }, async () => {
|
||||
const results = await renderCandidates([{ family: 'League Gothic', weight: 400 }, { family: 'Inter', weight: 400 }], 'The manuals stop.', 48);
|
||||
assert.ok(results, 'no browser');
|
||||
if (!results) return; // module resolves but no browser binary (CI): the catalog fallback owns it
|
||||
const ok = results.filter((r) => r.loaded && r.fp);
|
||||
if (ok.length < 2) return; // offline: Google Fonts unreachable
|
||||
const index = loadFontIndex();
|
||||
|
||||
Reference in New Issue
Block a user