fix: strengthen visible content accessibility proof

This commit is contained in:
2026-09-02 03:37:58 +03:00
parent 829fed53aa
commit 8dabd9a6df
4 changed files with 338 additions and 53 deletions

View File

@@ -1,4 +1,4 @@
import { expect, test } from '../helpers/serve-dist';
import { expect, expectInsetFocusIndicator, test } from '../helpers/serve-dist';
const navHrefs = [
'#start',
@@ -94,7 +94,7 @@ test('activating the skip link focuses the visible unobscured portfolio content'
'tabindex',
'-1',
);
await assertVisibleUnobscuredFocus(page);
await expectInsetFocusIndicator(page, '#portfolio-content');
});
test('explicit section activation scrolls to and focuses its heading', async ({