fix: make nightdrive signage reliable and legible

This commit is contained in:
2026-09-03 17:07:00 +03:00
parent 4404c07f93
commit b075041918
50 changed files with 4435 additions and 200 deletions

View File

@@ -198,10 +198,18 @@ test("explicit keyboard navigation focuses a section heading without a fixed-sur
await page.keyboard.press("Enter");
await expect(page.locator("#contact-heading")).toBeFocused();
const geometry = await currentFocusGeometry(page);
expect(geometry.focusVisible).toBe(true);
expect(geometry.insideSafeBounds).toBe(true);
expect(geometry.overlapArea).toBe(0);
await expect.poll(async () => {
const geometry = await currentFocusGeometry(page);
return {
focusVisible: geometry.focusVisible,
insideSafeBounds: geometry.insideSafeBounds,
overlapArea: geometry.overlapArea,
};
}).toEqual({
focusVisible: true,
insideSafeBounds: true,
overlapArea: 0,
});
});
test("responsive navigation exposes the exact visible label as each link's accessible name", async ({