Skip to content

Commit 14d54d8

Browse files
feat(axe-core-4.10.2): update to use axe-core 4.10.2 (#1395)
#### Details This PR upgrades axe-core to 4.10.2 according to the instructions in CONTRIBUTING.md. ##### Motivation feature work 🚀 ##### Context <!-- Are there any parts that you've intentionally left out-of-scope for a later PR to handle? --> <!-- Were there any alternative approaches you considered? What tradeoffs did you consider? --> #### Pull request checklist <!-- If a checklist item is not applicable to this change, write "n/a" in the checkbox --> - [x] PR title respects [Conventional Commits](https://www.conventionalcommits.org) (starts with `fix:`, `feat:`, etc, and is suitable for user-facing release notes) - [x] PR contains no breaking changes, **OR** description of both PR **and final merge commit** starts with `BREAKING CHANGE:` - [x] Verify PR title and final merge commit contain space after `:` for example `feat(feature): feature title` otherwise it will not be considered by semantic-release for release. - [ ] (if applicable) Addresses issue: #0000 - [ ] Added relevant unit tests for your changes - [x] Ran `yarn precheckin` - [x] Verified code coverage for the changes made
1 parent cae434e commit 14d54d8

15 files changed

+108357
-109
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"yargs": "^17.0.0"
2323
},
2424
"devDependencies": {
25-
"@axe-core/cli": "^4.9.0",
26-
"@axe-core/puppeteer": "^4.9.0",
25+
"@axe-core/cli": "^4.10.0",
26+
"@axe-core/puppeteer": "^4.10.0",
2727
"@types/jest": "^29.5.12",
2828
"@types/lodash": "^4.14.136",
2929
"@types/node": "^18.19.57",
@@ -47,7 +47,7 @@
4747
},
4848
"resolutions": {
4949
"ansi-regex@^4.1.0": "^5.0.1",
50-
"axe-core": "4.9.1",
50+
"axe-core": "4.10.2",
5151
"chromedriver": "^119.0.1"
5252
},
5353
"scripts": {

src/__snapshots__/index.test.ts.snap

+4-4
Original file line numberDiff line numberDiff line change
@@ -1388,15 +1388,15 @@ exports[`public sarifReporter API converts empty/minimal axe rawObject input wit
13881388
],
13891389
"tool": {
13901390
"driver": {
1391-
"downloadUri": "https://www.npmjs.com/package/axe-core/v/4.9.1",
1392-
"fullName": "axe for Web v4.9.1",
1391+
"downloadUri": "https://www.npmjs.com/package/axe-core/v/4.10.2",
1392+
"fullName": "axe for Web v4.10.2",
13931393
"informationUri": "https://www.deque.com/axe/axe-for-web/",
13941394
"name": "axe-core",
13951395
"properties": {
13961396
"microsoft/qualityDomain": "Accessibility",
13971397
},
13981398
"rules": [],
1399-
"semanticVersion": "4.9.1",
1399+
"semanticVersion": "4.10.2",
14001400
"shortDescription": {
14011401
"text": "An open source accessibility rules library for automated testing.",
14021402
},
@@ -1407,7 +1407,7 @@ exports[`public sarifReporter API converts empty/minimal axe rawObject input wit
14071407
"name": "WCAG",
14081408
},
14091409
],
1410-
"version": "4.9.1",
1410+
"version": "4.10.2",
14111411
},
14121412
},
14131413
},

src/cli.test.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ describe('axe-sarif-converter CLI', () => {
8585
${'w3citylights-axe-v4.8.4.axe-cli-v4.9.0.json'}
8686
${'basic-axe-v4.9.1.axe-cli-v4.9.1.json'}
8787
${'w3citylights-axe-v4.9.1.axe-cli-v4.9.1.json'}
88+
${'basic-axe-v4.10.2.axe-cli-v4.10.0.json'}
89+
${'w3citylights-axe-v4.10.2.axe-cli-v4.10.0.json'}
8890
`(
8991
'supports conversion from axe-cli output $inputFile',
9092
async ({ inputFile }) => {
@@ -206,11 +208,11 @@ describe('axe-sarif-converter CLI', () => {
206208
const testResultsDir = path.join(__dirname, '..', 'test-results');
207209
const basicAxeV2File = path.join(
208210
testResourcesDir,
209-
'basic-axe-v4.9.1.reporter-v2.json',
211+
'basic-axe-v4.10.2.reporter-v2.json',
210212
);
211213
const basicSarifFile = path.join(
212214
testResourcesDir,
213-
'basic-axe-v4.9.1.sarif',
215+
'basic-axe-v4.10.2.sarif',
214216
);
215217

216218
const mkdir = promisify(fs.mkdir);

src/index.test.ts

+81-77
Original file line numberDiff line numberDiff line change
@@ -48,81 +48,85 @@ describe('public convertAxeToSarif API', () => {
4848
});
4949

5050
it.each`
51-
inputFile | outputFile
52-
${'basic-axe-v3.2.2.reporter-v2.json'} | ${'basic-axe-v3.2.2.sarif'}
53-
${'w3citylights-axe-v3.2.2.reporter-v2.json'} | ${'w3citylights-axe-v3.2.2.sarif'}
54-
${'basic-axe-v3.3.2.reporter-v1.json'} | ${'basic-axe-v3.3.2.sarif'}
55-
${'basic-axe-v3.3.2.reporter-v2.json'} | ${'basic-axe-v3.3.2.sarif'}
56-
${'w3citylights-axe-v3.3.2.reporter-v1.json'} | ${'w3citylights-axe-v3.3.2.sarif'}
57-
${'w3citylights-axe-v3.3.2.reporter-v2.json'} | ${'w3citylights-axe-v3.3.2.sarif'}
58-
${'basic-axe-v3.4.1.reporter-v1.json'} | ${'basic-axe-v3.4.1.sarif'}
59-
${'basic-axe-v3.4.1.reporter-v2.json'} | ${'basic-axe-v3.4.1.sarif'}
60-
${'w3citylights-axe-v3.4.1.reporter-v1.json'} | ${'w3citylights-axe-v3.4.1.sarif'}
61-
${'w3citylights-axe-v3.4.1.reporter-v2.json'} | ${'w3citylights-axe-v3.4.1.sarif'}
62-
${'basic-axe-v3.4.2.reporter-v1.json'} | ${'basic-axe-v3.4.2.sarif'}
63-
${'basic-axe-v3.4.2.reporter-v2.json'} | ${'basic-axe-v3.4.2.sarif'}
64-
${'w3citylights-axe-v3.4.2.reporter-v1.json'} | ${'w3citylights-axe-v3.4.2.sarif'}
65-
${'w3citylights-axe-v3.4.2.reporter-v2.json'} | ${'w3citylights-axe-v3.4.2.sarif'}
66-
${'basic-axe-v3.5.1.reporter-v1.json'} | ${'basic-axe-v3.5.1.sarif'}
67-
${'basic-axe-v3.5.1.reporter-v2.json'} | ${'basic-axe-v3.5.1.sarif'}
68-
${'w3citylights-axe-v3.5.1.reporter-v1.json'} | ${'w3citylights-axe-v3.5.1.sarif'}
69-
${'w3citylights-axe-v3.5.1.reporter-v2.json'} | ${'w3citylights-axe-v3.5.1.sarif'}
70-
${'basic-axe-v3.5.2.reporter-v1.json'} | ${'basic-axe-v3.5.2.sarif'}
71-
${'basic-axe-v3.5.2.reporter-v2.json'} | ${'basic-axe-v3.5.2.sarif'}
72-
${'w3citylights-axe-v3.5.2.reporter-v1.json'} | ${'w3citylights-axe-v3.5.2.sarif'}
73-
${'w3citylights-axe-v3.5.2.reporter-v2.json'} | ${'w3citylights-axe-v3.5.2.sarif'}
74-
${'basic-axe-v3.5.3.reporter-v1.json'} | ${'basic-axe-v3.5.3.sarif'}
75-
${'basic-axe-v3.5.3.reporter-v2.json'} | ${'basic-axe-v3.5.3.sarif'}
76-
${'w3citylights-axe-v3.5.3.reporter-v1.json'} | ${'w3citylights-axe-v3.5.3.sarif'}
77-
${'w3citylights-axe-v3.5.3.reporter-v2.json'} | ${'w3citylights-axe-v3.5.3.sarif'}
78-
${'basic-axe-v3.5.4.reporter-v1.json'} | ${'basic-axe-v3.5.4.sarif'}
79-
${'basic-axe-v3.5.4.reporter-v2.json'} | ${'basic-axe-v3.5.4.sarif'}
80-
${'w3citylights-axe-v3.5.4.reporter-v1.json'} | ${'w3citylights-axe-v3.5.4.sarif'}
81-
${'w3citylights-axe-v3.5.4.reporter-v2.json'} | ${'w3citylights-axe-v3.5.4.sarif'}
82-
${'basic-axe-v3.5.5.reporter-v1.json'} | ${'basic-axe-v3.5.5.sarif'}
83-
${'basic-axe-v3.5.5.reporter-v2.json'} | ${'basic-axe-v3.5.5.sarif'}
84-
${'w3citylights-axe-v3.5.5.reporter-v1.json'} | ${'w3citylights-axe-v3.5.5.sarif'}
85-
${'w3citylights-axe-v3.5.5.reporter-v2.json'} | ${'w3citylights-axe-v3.5.5.sarif'}
86-
${'basic-axe-v4.0.1.reporter-v1.json'} | ${'basic-axe-v4.0.1.sarif'}
87-
${'basic-axe-v4.0.1.reporter-v2.json'} | ${'basic-axe-v4.0.1.sarif'}
88-
${'w3citylights-axe-v4.0.1.reporter-v1.json'} | ${'w3citylights-axe-v4.0.1.sarif'}
89-
${'w3citylights-axe-v4.0.1.reporter-v2.json'} | ${'w3citylights-axe-v4.0.1.sarif'}
90-
${'basic-axe-v4.0.2.reporter-v1.json'} | ${'basic-axe-v4.0.2.sarif'}
91-
${'basic-axe-v4.0.2.reporter-v2.json'} | ${'basic-axe-v4.0.2.sarif'}
92-
${'w3citylights-axe-v4.0.2.reporter-v1.json'} | ${'w3citylights-axe-v4.0.2.sarif'}
93-
${'w3citylights-axe-v4.0.2.reporter-v2.json'} | ${'w3citylights-axe-v4.0.2.sarif'}
94-
${'basic-axe-v4.1.1.reporter-v1.json'} | ${'basic-axe-v4.1.1.sarif'}
95-
${'basic-axe-v4.1.1.reporter-v2.json'} | ${'basic-axe-v4.1.1.sarif'}
96-
${'w3citylights-axe-v4.1.1.reporter-v1.json'} | ${'w3citylights-axe-v4.1.1.sarif'}
97-
${'w3citylights-axe-v4.1.1.reporter-v2.json'} | ${'w3citylights-axe-v4.1.1.sarif'}
98-
${'basic-axe-v4.2.0.reporter-v1.json'} | ${'basic-axe-v4.2.0.sarif'}
99-
${'basic-axe-v4.2.0.reporter-v2.json'} | ${'basic-axe-v4.2.0.sarif'}
100-
${'w3citylights-axe-v4.2.0.reporter-v1.json'} | ${'w3citylights-axe-v4.2.0.sarif'}
101-
${'w3citylights-axe-v4.2.0.reporter-v2.json'} | ${'w3citylights-axe-v4.2.0.sarif'}
102-
${'basic-axe-v4.3.2.reporter-v1.json'} | ${'basic-axe-v4.3.2.sarif'}
103-
${'basic-axe-v4.3.2.reporter-v2.json'} | ${'basic-axe-v4.3.2.sarif'}
104-
${'w3citylights-axe-v4.3.2.reporter-v1.json'} | ${'w3citylights-axe-v4.3.2.sarif'}
105-
${'w3citylights-axe-v4.3.2.reporter-v2.json'} | ${'w3citylights-axe-v4.3.2.sarif'}
106-
${'basic-axe-v4.4.1.reporter-v1.json'} | ${'basic-axe-v4.4.1.sarif'}
107-
${'basic-axe-v4.4.1.reporter-v2.json'} | ${'basic-axe-v4.4.1.sarif'}
108-
${'w3citylights-axe-v4.4.1.reporter-v1.json'} | ${'w3citylights-axe-v4.4.1.sarif'}
109-
${'w3citylights-axe-v4.4.1.reporter-v2.json'} | ${'w3citylights-axe-v4.4.1.sarif'}
110-
${'basic-axe-v4.6.3.reporter-v1.json'} | ${'basic-axe-v4.6.3.sarif'}
111-
${'basic-axe-v4.6.3.reporter-v2.json'} | ${'basic-axe-v4.6.3.sarif'}
112-
${'w3citylights-axe-v4.6.3.reporter-v1.json'} | ${'w3citylights-axe-v4.6.3.sarif'}
113-
${'w3citylights-axe-v4.6.3.reporter-v2.json'} | ${'w3citylights-axe-v4.6.3.sarif'}
114-
${'basic-axe-v4.7.2.reporter-v1.json'} | ${'basic-axe-v4.7.2.sarif'}
115-
${'basic-axe-v4.7.2.reporter-v2.json'} | ${'basic-axe-v4.7.2.sarif'}
116-
${'w3citylights-axe-v4.7.2.reporter-v1.json'} | ${'w3citylights-axe-v4.7.2.sarif'}
117-
${'w3citylights-axe-v4.7.2.reporter-v2.json'} | ${'w3citylights-axe-v4.7.2.sarif'}
118-
${'basic-axe-v4.8.4.reporter-v1.json'} | ${'basic-axe-v4.8.4.sarif'}
119-
${'basic-axe-v4.8.4.reporter-v2.json'} | ${'basic-axe-v4.8.4.sarif'}
120-
${'w3citylights-axe-v4.8.4.reporter-v1.json'} | ${'w3citylights-axe-v4.8.4.sarif'}
121-
${'w3citylights-axe-v4.8.4.reporter-v2.json'} | ${'w3citylights-axe-v4.8.4.sarif'}
122-
${'basic-axe-v4.9.1.reporter-v1.json'} | ${'basic-axe-v4.9.1.sarif'}
123-
${'basic-axe-v4.9.1.reporter-v2.json'} | ${'basic-axe-v4.9.1.sarif'}
124-
${'w3citylights-axe-v4.9.1.reporter-v1.json'} | ${'w3citylights-axe-v4.9.1.sarif'}
125-
${'w3citylights-axe-v4.9.1.reporter-v2.json'} | ${'w3citylights-axe-v4.9.1.sarif'}
51+
inputFile | outputFile
52+
${'basic-axe-v3.2.2.reporter-v2.json'} | ${'basic-axe-v3.2.2.sarif'}
53+
${'w3citylights-axe-v3.2.2.reporter-v2.json'} | ${'w3citylights-axe-v3.2.2.sarif'}
54+
${'basic-axe-v3.3.2.reporter-v1.json'} | ${'basic-axe-v3.3.2.sarif'}
55+
${'basic-axe-v3.3.2.reporter-v2.json'} | ${'basic-axe-v3.3.2.sarif'}
56+
${'w3citylights-axe-v3.3.2.reporter-v1.json'} | ${'w3citylights-axe-v3.3.2.sarif'}
57+
${'w3citylights-axe-v3.3.2.reporter-v2.json'} | ${'w3citylights-axe-v3.3.2.sarif'}
58+
${'basic-axe-v3.4.1.reporter-v1.json'} | ${'basic-axe-v3.4.1.sarif'}
59+
${'basic-axe-v3.4.1.reporter-v2.json'} | ${'basic-axe-v3.4.1.sarif'}
60+
${'w3citylights-axe-v3.4.1.reporter-v1.json'} | ${'w3citylights-axe-v3.4.1.sarif'}
61+
${'w3citylights-axe-v3.4.1.reporter-v2.json'} | ${'w3citylights-axe-v3.4.1.sarif'}
62+
${'basic-axe-v3.4.2.reporter-v1.json'} | ${'basic-axe-v3.4.2.sarif'}
63+
${'basic-axe-v3.4.2.reporter-v2.json'} | ${'basic-axe-v3.4.2.sarif'}
64+
${'w3citylights-axe-v3.4.2.reporter-v1.json'} | ${'w3citylights-axe-v3.4.2.sarif'}
65+
${'w3citylights-axe-v3.4.2.reporter-v2.json'} | ${'w3citylights-axe-v3.4.2.sarif'}
66+
${'basic-axe-v3.5.1.reporter-v1.json'} | ${'basic-axe-v3.5.1.sarif'}
67+
${'basic-axe-v3.5.1.reporter-v2.json'} | ${'basic-axe-v3.5.1.sarif'}
68+
${'w3citylights-axe-v3.5.1.reporter-v1.json'} | ${'w3citylights-axe-v3.5.1.sarif'}
69+
${'w3citylights-axe-v3.5.1.reporter-v2.json'} | ${'w3citylights-axe-v3.5.1.sarif'}
70+
${'basic-axe-v3.5.2.reporter-v1.json'} | ${'basic-axe-v3.5.2.sarif'}
71+
${'basic-axe-v3.5.2.reporter-v2.json'} | ${'basic-axe-v3.5.2.sarif'}
72+
${'w3citylights-axe-v3.5.2.reporter-v1.json'} | ${'w3citylights-axe-v3.5.2.sarif'}
73+
${'w3citylights-axe-v3.5.2.reporter-v2.json'} | ${'w3citylights-axe-v3.5.2.sarif'}
74+
${'basic-axe-v3.5.3.reporter-v1.json'} | ${'basic-axe-v3.5.3.sarif'}
75+
${'basic-axe-v3.5.3.reporter-v2.json'} | ${'basic-axe-v3.5.3.sarif'}
76+
${'w3citylights-axe-v3.5.3.reporter-v1.json'} | ${'w3citylights-axe-v3.5.3.sarif'}
77+
${'w3citylights-axe-v3.5.3.reporter-v2.json'} | ${'w3citylights-axe-v3.5.3.sarif'}
78+
${'basic-axe-v3.5.4.reporter-v1.json'} | ${'basic-axe-v3.5.4.sarif'}
79+
${'basic-axe-v3.5.4.reporter-v2.json'} | ${'basic-axe-v3.5.4.sarif'}
80+
${'w3citylights-axe-v3.5.4.reporter-v1.json'} | ${'w3citylights-axe-v3.5.4.sarif'}
81+
${'w3citylights-axe-v3.5.4.reporter-v2.json'} | ${'w3citylights-axe-v3.5.4.sarif'}
82+
${'basic-axe-v3.5.5.reporter-v1.json'} | ${'basic-axe-v3.5.5.sarif'}
83+
${'basic-axe-v3.5.5.reporter-v2.json'} | ${'basic-axe-v3.5.5.sarif'}
84+
${'w3citylights-axe-v3.5.5.reporter-v1.json'} | ${'w3citylights-axe-v3.5.5.sarif'}
85+
${'w3citylights-axe-v3.5.5.reporter-v2.json'} | ${'w3citylights-axe-v3.5.5.sarif'}
86+
${'basic-axe-v4.0.1.reporter-v1.json'} | ${'basic-axe-v4.0.1.sarif'}
87+
${'basic-axe-v4.0.1.reporter-v2.json'} | ${'basic-axe-v4.0.1.sarif'}
88+
${'w3citylights-axe-v4.0.1.reporter-v1.json'} | ${'w3citylights-axe-v4.0.1.sarif'}
89+
${'w3citylights-axe-v4.0.1.reporter-v2.json'} | ${'w3citylights-axe-v4.0.1.sarif'}
90+
${'basic-axe-v4.0.2.reporter-v1.json'} | ${'basic-axe-v4.0.2.sarif'}
91+
${'basic-axe-v4.0.2.reporter-v2.json'} | ${'basic-axe-v4.0.2.sarif'}
92+
${'w3citylights-axe-v4.0.2.reporter-v1.json'} | ${'w3citylights-axe-v4.0.2.sarif'}
93+
${'w3citylights-axe-v4.0.2.reporter-v2.json'} | ${'w3citylights-axe-v4.0.2.sarif'}
94+
${'basic-axe-v4.1.1.reporter-v1.json'} | ${'basic-axe-v4.1.1.sarif'}
95+
${'basic-axe-v4.1.1.reporter-v2.json'} | ${'basic-axe-v4.1.1.sarif'}
96+
${'w3citylights-axe-v4.1.1.reporter-v1.json'} | ${'w3citylights-axe-v4.1.1.sarif'}
97+
${'w3citylights-axe-v4.1.1.reporter-v2.json'} | ${'w3citylights-axe-v4.1.1.sarif'}
98+
${'basic-axe-v4.2.0.reporter-v1.json'} | ${'basic-axe-v4.2.0.sarif'}
99+
${'basic-axe-v4.2.0.reporter-v2.json'} | ${'basic-axe-v4.2.0.sarif'}
100+
${'w3citylights-axe-v4.2.0.reporter-v1.json'} | ${'w3citylights-axe-v4.2.0.sarif'}
101+
${'w3citylights-axe-v4.2.0.reporter-v2.json'} | ${'w3citylights-axe-v4.2.0.sarif'}
102+
${'basic-axe-v4.3.2.reporter-v1.json'} | ${'basic-axe-v4.3.2.sarif'}
103+
${'basic-axe-v4.3.2.reporter-v2.json'} | ${'basic-axe-v4.3.2.sarif'}
104+
${'w3citylights-axe-v4.3.2.reporter-v1.json'} | ${'w3citylights-axe-v4.3.2.sarif'}
105+
${'w3citylights-axe-v4.3.2.reporter-v2.json'} | ${'w3citylights-axe-v4.3.2.sarif'}
106+
${'basic-axe-v4.4.1.reporter-v1.json'} | ${'basic-axe-v4.4.1.sarif'}
107+
${'basic-axe-v4.4.1.reporter-v2.json'} | ${'basic-axe-v4.4.1.sarif'}
108+
${'w3citylights-axe-v4.4.1.reporter-v1.json'} | ${'w3citylights-axe-v4.4.1.sarif'}
109+
${'w3citylights-axe-v4.4.1.reporter-v2.json'} | ${'w3citylights-axe-v4.4.1.sarif'}
110+
${'basic-axe-v4.6.3.reporter-v1.json'} | ${'basic-axe-v4.6.3.sarif'}
111+
${'basic-axe-v4.6.3.reporter-v2.json'} | ${'basic-axe-v4.6.3.sarif'}
112+
${'w3citylights-axe-v4.6.3.reporter-v1.json'} | ${'w3citylights-axe-v4.6.3.sarif'}
113+
${'w3citylights-axe-v4.6.3.reporter-v2.json'} | ${'w3citylights-axe-v4.6.3.sarif'}
114+
${'basic-axe-v4.7.2.reporter-v1.json'} | ${'basic-axe-v4.7.2.sarif'}
115+
${'basic-axe-v4.7.2.reporter-v2.json'} | ${'basic-axe-v4.7.2.sarif'}
116+
${'w3citylights-axe-v4.7.2.reporter-v1.json'} | ${'w3citylights-axe-v4.7.2.sarif'}
117+
${'w3citylights-axe-v4.7.2.reporter-v2.json'} | ${'w3citylights-axe-v4.7.2.sarif'}
118+
${'basic-axe-v4.8.4.reporter-v1.json'} | ${'basic-axe-v4.8.4.sarif'}
119+
${'basic-axe-v4.8.4.reporter-v2.json'} | ${'basic-axe-v4.8.4.sarif'}
120+
${'w3citylights-axe-v4.8.4.reporter-v1.json'} | ${'w3citylights-axe-v4.8.4.sarif'}
121+
${'w3citylights-axe-v4.8.4.reporter-v2.json'} | ${'w3citylights-axe-v4.8.4.sarif'}
122+
${'basic-axe-v4.9.1.reporter-v1.json'} | ${'basic-axe-v4.9.1.sarif'}
123+
${'basic-axe-v4.9.1.reporter-v2.json'} | ${'basic-axe-v4.9.1.sarif'}
124+
${'w3citylights-axe-v4.9.1.reporter-v1.json'} | ${'w3citylights-axe-v4.9.1.sarif'}
125+
${'w3citylights-axe-v4.9.1.reporter-v2.json'} | ${'w3citylights-axe-v4.9.1.sarif'}
126+
${'basic-axe-v4.10.2.reporter-v1.json'} | ${'basic-axe-v4.10.2.sarif'}
127+
${'basic-axe-v4.10.2.reporter-v2.json'} | ${'basic-axe-v4.10.2.sarif'}
128+
${'w3citylights-axe-v4.10.2.reporter-v1.json'} | ${'w3citylights-axe-v4.10.2.sarif'}
129+
${'w3citylights-axe-v4.10.2.reporter-v2.json'} | ${'w3citylights-axe-v4.10.2.sarif'}
126130
`(
127131
'converts pinned v1/v2 input $inputFile to pinned output $outputFile',
128132
({ inputFile, outputFile }) => {
@@ -168,8 +172,8 @@ describe('public sarifReporter API', () => {
168172
// Since the integration tests of the raw converter involve global page/axe state,
169173
// it isn't very meaningful to test cases that involve old axe versions here.
170174
it.each`
171-
inputFile | outputFile
172-
${'basic-axe-v4.9.1.reporter-raw.json'} | ${'basic-axe-v4.9.1.sarif'}
175+
inputFile | outputFile
176+
${'basic-axe-v4.10.2.reporter-raw.json'} | ${'basic-axe-v4.10.2.sarif'}
173177
`(
174178
'converts pinned raw input $inputFile to pinned output $outputFile',
175179
async ({ inputFile, outputFile }) => {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
[
2+
{
3+
"testEngine": {
4+
"name": "axe-core",
5+
"version": "4.10.2"
6+
},
7+
"testRunner": {
8+
"name": "axe"
9+
},
10+
"testEnvironment": {
11+
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/119.0.5997.0 Safari/537.36",
12+
"windowWidth": 800,
13+
"windowHeight": 600,
14+
"orientationAngle": 0,
15+
"orientationType": "landscape-primary"
16+
},
17+
"timestamp": "2024-10-24T06:25:43.989Z",
18+
"url": "file:///C:/Users/v-jeevanic/source/repos/axe-sarif-converter/src/test-resources/basic.html",
19+
"toolOptions": {
20+
"runOnly": {
21+
"type": "rule",
22+
"values": [
23+
"document-title"
24+
]
25+
},
26+
"reporter": "v1"
27+
},
28+
"inapplicable": [],
29+
"passes": [],
30+
"incomplete": [],
31+
"violations": [
32+
{
33+
"id": "document-title",
34+
"impact": "serious",
35+
"tags": [
36+
"cat.text-alternatives",
37+
"wcag2a",
38+
"wcag242",
39+
"TTv5",
40+
"TT12.a",
41+
"EN-301-549",
42+
"EN-9.2.4.2",
43+
"ACT"
44+
],
45+
"description": "Ensure each HTML document contains a non-empty <title> element",
46+
"help": "Documents must have <title> element to aid in navigation",
47+
"helpUrl": "https://dequeuniversity.com/rules/axe/4.10/document-title?application=webdriverjs",
48+
"nodes": [
49+
{
50+
"any": [
51+
{
52+
"id": "doc-has-title",
53+
"data": null,
54+
"relatedNodes": [],
55+
"impact": "serious",
56+
"message": "Document does not have a non-empty <title> element"
57+
}
58+
],
59+
"all": [],
60+
"none": [],
61+
"impact": "serious",
62+
"html": "<html><head></head><body>\n</body></html>",
63+
"target": [
64+
"html"
65+
],
66+
"failureSummary": "Fix any of the following:\n Document does not have a non-empty <title> element"
67+
}
68+
]
69+
}
70+
]
71+
}
72+
]

0 commit comments

Comments
 (0)