Skip to content

Commit d80dd64

Browse files
committed
ut
1 parent 2530ba9 commit d80dd64

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ test-results
2929

3030
# Test coverage
3131
coverage/
32+
*.junit.xml
3233

3334
# Playwright
3435
playwright-report/

test/nuxt/a11y.spec.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ import {
112112
PackageChartModal,
113113
PackageClaimPackageModal,
114114
PackageCompatibility,
115+
PackageDeprecatePackageModal,
115116
PackageDependencies,
116117
PackageDeprecatedTree,
117118
PackageInstallScripts,
@@ -951,6 +952,29 @@ describe('component accessibility audits', () => {
951952
})
952953
})
953954

955+
describe('PackageDeprecatePackageModal', () => {
956+
it('should have no accessibility violations when closed', async () => {
957+
const component = await mountSuspended(PackageDeprecatePackageModal, {
958+
props: {
959+
packageName: 'test-package',
960+
},
961+
})
962+
const results = await runAxe(component)
963+
expect(results.violations).toEqual([])
964+
})
965+
966+
it('should have no accessibility violations when closed with version', async () => {
967+
const component = await mountSuspended(PackageDeprecatePackageModal, {
968+
props: {
969+
packageName: 'test-package',
970+
version: '1.0.0',
971+
},
972+
})
973+
const results = await runAxe(component)
974+
expect(results.violations).toEqual([])
975+
})
976+
})
977+
954978
describe('PackageProvenanceSection', () => {
955979
it('should have no accessibility violations with minimal details', async () => {
956980
const component = await mountSuspended(PackageProvenanceSection, {

0 commit comments

Comments
 (0)