test(voyage): re-localize skip-link assertions to Norwegian (Step 10)

This commit is contained in:
Kjell Tore Guttormsen 2026-05-10 16:20:53 +02:00
commit 64e27d875a

View file

@ -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)', () => {