Skip to content

Commit 96207e0

Browse files
committed
test: remove revealjs axe test cases that relied on link-name
The link-name violation from the slide-menu button is now fixed, so remove the revealjs test cases and the unused link-name entry from violationText.
1 parent bfb9199 commit 96207e0

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

tests/integration/playwright/tests/axe-accessibility.spec.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,6 @@ const testCases: AxeTestCase[] = [
4848
{ format: 'html', outputMode: 'json', url: '/html/axe-json.html',
4949
expectedViolation: 'color-contrast' },
5050

51-
// RevealJS — axe-check.js loads as standalone module (#13781).
52-
// RevealJS CSS transforms prevent axe-core from computing color contrast,
53-
// so we check for link-name (slide-menu-button has unlabeled <a>).
54-
{ format: 'revealjs', outputMode: 'document', url: '/revealjs/axe-accessibility.html',
55-
expectedViolation: 'link-name' },
56-
{ format: 'revealjs', outputMode: 'console', url: '/revealjs/axe-console.html',
57-
expectedViolation: 'link-name' },
58-
{ format: 'revealjs', outputMode: 'json', url: '/revealjs/axe-json.html',
59-
expectedViolation: 'link-name' },
60-
61-
// RevealJS dark theme — verifies CSS custom property bridge for theming.
62-
// Report should use --r-background-color/#191919, not the Sass fallback #fff.
63-
{ format: 'revealjs-dark', outputMode: 'document', url: '/revealjs/axe-accessibility-dark.html',
64-
expectedViolation: 'link-name' },
65-
6651
// Dashboard — axe-check.js loads as standalone module, falls back to document.body (#13781)
6752
{ format: 'dashboard', outputMode: 'document', url: '/dashboard/axe-accessibility.html',
6853
expectedViolation: 'color-contrast' },
@@ -84,7 +69,6 @@ const testCases: AxeTestCase[] = [
8469
// Document reporter shows the full description; console reporter shows a shorter form.
8570
const violationText: Record<string, { document: string; console: string }> = {
8671
'color-contrast': { document: 'color contrast', console: 'contrast' },
87-
'link-name': { document: 'discernible text', console: 'discernible text' },
8872
'image-alt': { document: 'alternative text', console: 'alternative text' },
8973
};
9074

0 commit comments

Comments
 (0)