fix: make nightdrive signage reliable and legible
This commit is contained in:
@@ -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 ({
|
||||
|
||||
Reference in New Issue
Block a user