fix e2e: favicon href hash query + hover self-heal
CI / build + unit + e2e (pull_request) Failing after 10m50s

This commit is contained in:
2026-09-22 16:03:21 +00:00
parent dae354410f
commit e5693b3301
3 changed files with 15 additions and 16 deletions
+2 -1
View File
@@ -198,7 +198,8 @@ test('favicon ships as /icon.svg (ISS-122)', async ({ page }) => {
// App Router file convention: app/icon.svg is auto-served and injected into the head.
const link = page.locator('head link[rel~="icon"]');
await expect(link).toHaveCount(1);
expect(await link.getAttribute('href')).toBe('/icon.svg');
// Production builds append a content-hash query string to the auto-injected icon href.
expect(await link.getAttribute('href')).toMatch(/^\/icon\.svg/);
const res = await page.request.get('/icon.svg');
expect(res.status()).toBe(200);