fix: use app icon across browser and chat
Build / build (push) Canceled after 0s
Playwright / e2e (push) Canceled after 0s

This commit is contained in:
2026-11-05 12:01:20 +08:00
parent 34233f0ee0
commit c50a6f63d9
14 changed files with 49 additions and 16 deletions
+12
View File
@@ -0,0 +1,12 @@
import { expect, test } from '@playwright/test'
test('serves the application icon for the browser tab', async ({ page }) => {
await page.goto('/')
const icon = page.locator('link[rel="icon"]')
await expect(icon).toHaveAttribute('href', '/app-logo.png')
await expect(icon).toHaveAttribute('type', 'image/png')
const response = await page.request.get('/app-logo.png')
expect(response.ok()).toBe(true)
expect(response.headers()['content-type']).toContain('image/png')
expect((await response.body()).subarray(0, 8)).toEqual(Buffer.from([137, 80, 78, 71, 13, 10, 26, 10]))
})