feat: establish nightdrive visual foundation

This commit is contained in:
2026-09-02 13:55:01 +03:00
parent f1e156fba7
commit 24afda8710
8 changed files with 193 additions and 47 deletions

View File

@@ -111,6 +111,25 @@ test('exposes the complete semantic portfolio from the generated document', asyn
).toBe(true);
});
test('loads the self-hosted Geist families for information and route text', async ({
page,
distUrl,
}) => {
await page.goto(distUrl, { waitUntil: 'domcontentloaded' });
await page.evaluate(() => document.fonts.ready);
const fonts = await page.evaluate(() => ({
sansLoaded: document.fonts.check('16px "Geist Variable"'),
monoLoaded: document.fonts.check('16px "Geist Mono Variable"'),
headingFamily: getComputedStyle(document.querySelector('h1')!).fontFamily,
routeFamily: getComputedStyle(document.querySelector('.route-label')!).fontFamily,
}));
expect(fonts).toMatchObject({ sansLoaded: true, monoLoaded: true });
expect(fonts.headingFamily).toContain('Geist Variable');
expect(fonts.routeFamily).toContain('Geist Mono Variable');
});
test('keeps canonical native anchors and safe external destinations', async ({
page,
distUrl,