diff --git a/plugins/voyage/tests/playground/voyage-playground.test.mjs b/plugins/voyage/tests/playground/voyage-playground.test.mjs index 695f02d..24f0935 100644 --- a/plugins/voyage/tests/playground/voyage-playground.test.mjs +++ b/plugins/voyage/tests/playground/voyage-playground.test.mjs @@ -42,7 +42,9 @@ test('voyage-playground.html does NOT contain literal `marked` (renderer ban per test('voyage-playground.html includes skip-to-main link (A11Y baseline)', () => { const text = readFileSync(HTML, 'utf-8'); - assert.match(text, /Skip to main content/); + // v4.3 Step 10 — Norwegian skip-link: "Hopp til hovedinnhold" + assert.match(text, /class="skip-link"[^>]*href="#main-content"/); + assert.match(text, /Hopp til hovedinnhold/); }); test('voyage-playground.html declares aria-live region', () => { @@ -134,7 +136,8 @@ test('voyage-playground.html declares aria-live="polite" toast region (Step 11 A test('voyage-playground.html includes Skip to main link (Step 11 A11Y baseline)', () => { const text = readFileSync(HTML, 'utf-8'); - assert.match(text, /Skip to main/, 'Skip to main content link required for keyboard A11Y'); + // v4.3 Step 10 — text re-localized to Norwegian; semantic check via class. + assert.match(text, /class="skip-link"/, 'skip-link class required for keyboard A11Y'); }); test('voyage-playground.html uses Blob for download flow (Step 11 export)', () => {