Skip to content

Commit 607051c

Browse files
committed
test: remove revealjs axe console/json cases that relied on link-name
The link-name violation from the slide-menu button is now fixed. The console and json revealjs fixtures have no other detectable violation, so remove those test cases. The document-mode fixtures already have an unlabeled img that triggers image-alt.
1 parent bb710a2 commit 607051c

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

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

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,14 @@ const testCases: AxeTestCase[] = [
5050

5151
// RevealJS — axe-check.js loads as standalone module (#13781).
5252
// RevealJS CSS transforms prevent axe-core from computing color contrast,
53-
// so we check for link-name (slide-menu-button has unlabeled <a>).
53+
// so we check for image-alt (unlabeled <img> on Slide 2).
5454
{ 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' },
55+
expectedViolation: 'image-alt' },
6056

6157
// RevealJS dark theme — verifies CSS custom property bridge for theming.
6258
// Report should use --r-background-color/#191919, not the Sass fallback #fff.
6359
{ format: 'revealjs-dark', outputMode: 'document', url: '/revealjs/axe-accessibility-dark.html',
64-
expectedViolation: 'link-name' },
60+
expectedViolation: 'image-alt' },
6561

6662
// Dashboard — axe-check.js loads as standalone module, falls back to document.body (#13781)
6763
{ format: 'dashboard', outputMode: 'document', url: '/dashboard/axe-accessibility.html',

0 commit comments

Comments
 (0)