Skip to content

Commit 60fdf4a

Browse files
committed
chore: add JSRequired component test
1 parent 3247cf5 commit 60fdf4a

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

test/nuxt/a11y.spec.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ import {
140140
HeaderConnectorModal,
141141
HeaderSearchBox,
142142
InputBase,
143+
JSRequired,
143144
LicenseDisplay,
144145
LoadingSpinner,
145146
PackageProvenanceSection,
@@ -2481,6 +2482,14 @@ describe('component accessibility audits', () => {
24812482
expect(results.violations).toEqual([])
24822483
})
24832484
})
2485+
2486+
describe('JSRequired', () => {
2487+
it('should have no accessibility violations', async () => {
2488+
const component = await mountSuspended(JSRequired)
2489+
const results = await runAxe(component)
2490+
expect(results.violations).toEqual([])
2491+
})
2492+
})
24842493
})
24852494

24862495
function applyTheme(colorMode: string, bgTheme: string | null) {
@@ -2604,6 +2613,10 @@ describe('background theme accessibility', () => {
26042613
name: 'PackageList',
26052614
mount: () => mountSuspended(PackageList, { props: { results: [packageResult] } }),
26062615
},
2616+
{
2617+
name: 'JSRequired',
2618+
mount: () => mountSuspended(JSRequired),
2619+
},
26072620
]
26082621

26092622
/**

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ const SKIPPED_COMPONENTS: Record<string, string> = {
4444
'SkeletonBlock.vue': 'Already covered indirectly via other component tests',
4545
'SkeletonInline.vue': 'Already covered indirectly via other component tests',
4646
'Button/Group.vue': "Wrapper component, tests wouldn't make much sense here",
47-
48-
// noscript component
49-
'JSRequired.vue':
50-
'simple component used with noscript component when page requires JavaScript to function',
5147
}
5248

5349
/**

0 commit comments

Comments
 (0)