test(ui): home greeting asserts sans font, not the dropped serif

The greeting render-smoke still asserted Fraunces; update it to assert the
Geist sans display font (and not Fraunces), matching the all-sans direction.

Assisted-by: Claude:claude-opus-4-8 [Claude Code]
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto
2026-06-18 15:06:07 +00:00
parent 30245d7bec
commit 67e2f2caba

View File

@@ -1,12 +1,14 @@
import { test, expect } from './coverage-fixtures.js'
test.describe('Home editorial redesign', () => {
test('renders the serif greeting header', async ({ page }) => {
test('renders the editorial greeting header in the sans display font', async ({ page }) => {
await page.goto('/app')
const greeting = page.locator('.home-greeting')
await expect(greeting).toBeVisible({ timeout: 15_000 })
const family = await greeting.evaluate(el => getComputedStyle(el).fontFamily)
expect(family.toLowerCase()).toContain('fraunces')
// Refined-grotesk direction: the greeting uses Geist (no serif).
expect(family.toLowerCase()).toContain('geist')
expect(family.toLowerCase()).not.toContain('fraunces')
})
test('quick links expose a single primary action', async ({ page }) => {