mirror of
https://github.com/mudler/LocalAI.git
synced 2026-06-18 21:58:58 -04:00
Assisted-by: Claude:claude-opus-4-8 [Claude Code] Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
29 lines
1.2 KiB
JavaScript
29 lines
1.2 KiB
JavaScript
import { test, expect } from './coverage-fixtures.js'
|
|
|
|
test.describe('Editorial design system', () => {
|
|
test('page titles render in the Fraunces serif', async ({ page }) => {
|
|
await page.goto('/app/settings')
|
|
const title = page.locator('.page-title').first()
|
|
await expect(title).toBeVisible({ timeout: 15_000 })
|
|
const family = await title.evaluate(el => getComputedStyle(el).fontFamily)
|
|
expect(family.toLowerCase()).toContain('fraunces')
|
|
})
|
|
|
|
test('active nav item shows a left accent rail (box-shadow), not just a tint', async ({ page }) => {
|
|
await page.goto('/app/settings')
|
|
await expect(page.locator('.page-title').first()).toBeVisible({ timeout: 15_000 })
|
|
const active = page.locator('.sidebar-nav .nav-item.active').first()
|
|
await expect(active).toBeVisible()
|
|
const shadow = await active.evaluate(el => getComputedStyle(el).boxShadow)
|
|
expect(shadow).not.toBe('none')
|
|
})
|
|
|
|
test('page reveal animation is defined on .page-transition', async ({ page }) => {
|
|
await page.goto('/app/settings')
|
|
const pt = page.locator('.page-transition').first()
|
|
await expect(pt).toBeVisible({ timeout: 15_000 })
|
|
const name = await pt.evaluate(el => getComputedStyle(el).animationName)
|
|
expect(name).toBe('pageReveal')
|
|
})
|
|
})
|