fix e2e: favicon href hash query + hover self-heal
CI / build + unit + e2e (pull_request) Failing after 10m50s
CI / build + unit + e2e (pull_request) Failing after 10m50s
This commit is contained in:
+2
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user