mirror of
https://github.com/mudler/LocalAI.git
synced 2026-06-18 13:49:09 -04:00
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:
@@ -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 }) => {
|
||||
|
||||
Reference in New Issue
Block a user