Skip to content

Commit 565e2ab

Browse files
committed
test: update tests related to noodles
1 parent a4e310e commit 565e2ab

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

test/nuxt/a11y.spec.ts

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,10 @@ import {
155155
BlueskyPostEmbed,
156156
BuildEnvironment,
157157
ButtonBase,
158-
LandingLogo,
158+
LandingIntroHeader,
159+
NoodleKawaiiLogo,
160+
NoodleArtemisLogo,
161+
NoodleTkawaiiLogo,
159162
LinkBase,
160163
CallToAction,
161164
CodeDirectoryListing,
@@ -349,9 +352,29 @@ describe('component accessibility audits', () => {
349352
})
350353
})
351354

352-
describe('LandingLogo', () => {
355+
describe('LandingIntroHeader', () => {
353356
it('should have no accessibility violations', async () => {
354-
const component = await mountSuspended(LandingLogo)
357+
const component = await mountSuspended(LandingIntroHeader)
358+
const results = await runAxe(component)
359+
expect(results.violations).toEqual([])
360+
})
361+
})
362+
363+
describe('Noodles', () => {
364+
it('should have no accessibility violations', async () => {
365+
const component = await mountSuspended(NoodleKawaiiLogo)
366+
const results = await runAxe(component)
367+
expect(results.violations).toEqual([])
368+
})
369+
370+
it('should have no accessibility violations', async () => {
371+
const component = await mountSuspended(NoodleArtemisLogo)
372+
const results = await runAxe(component)
373+
expect(results.violations).toEqual([])
374+
})
375+
376+
it('should have no accessibility violations', async () => {
377+
const component = await mountSuspended(NoodleTkawaiiLogo)
355378
const results = await runAxe(component)
356379
expect(results.violations).toEqual([])
357380
})

test/unit/a11y-component-coverage.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ const SKIPPED_COMPONENTS: Record<string, string> = {
5252
'SkeletonInline.vue': 'Already covered indirectly via other component tests',
5353
'Button/Group.vue': "Wrapper component, tests wouldn't make much sense here",
5454
'Translation/StatusByFile.unused.vue': 'Unused component, might be needed in the future',
55+
'ColorScheme/Img.vue': 'Image component, basic ui',
5556
}
5657

5758
function normalizeComponentPath(filePath: string): string {

0 commit comments

Comments
 (0)