test(voyage): re-localize skip-link assertions to Norwegian (Step 10)
This commit is contained in:
parent
2bf766673d
commit
64e27d875a
1 changed files with 5 additions and 2 deletions
|
|
@ -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)', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue