-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: axe-core 3.3.2 compatibility (#104)
The library was already compatible with axe-core 3.3 results (the output format didn't change since 3.2), however there were no tests of it and no note of it in the README. This PR: * Restructures test files into a common format and uses `it.each` in the integration tests to reference them * Adds test files to pin axe 3.3.2 results' output * Updates yarn.lock (but not package.json) to reference axe-core 3.3.2 (relevant for the raw converter tests that use its global state) * Updates README documentation to better describe version compatibility and what we test against Technically, the only actual user-visible change is in the README file, but I felt this warranted a feat: update anyway since I wanted to make sure we forced an `npm publish` to get the NPM readme content updated.
- Loading branch information
Showing
22 changed files
with
62,247 additions
and
31,330 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
[ | ||
{ | ||
"id": "document-title", | ||
"result": "failed", | ||
"pageLevel": false, | ||
"impact": "serious", | ||
"tags": [ | ||
"cat.text-alternatives", | ||
"wcag2a", | ||
"wcag242" | ||
], | ||
"description": "Ensures each HTML document contains a non-empty <title> element", | ||
"help": "Documents must have <title> element to aid in navigation", | ||
"helpUrl": "https://dequeuniversity.com/rules/axe/3.3/document-title?application=axe-puppeteer", | ||
"inapplicable": [], | ||
"passes": [], | ||
"incomplete": [], | ||
"violations": [ | ||
{ | ||
"any": [ | ||
{ | ||
"id": "doc-has-title", | ||
"data": null, | ||
"relatedNodes": [], | ||
"impact": "serious", | ||
"message": "Document does not have a non-empty <title> element" | ||
} | ||
], | ||
"all": [], | ||
"none": [], | ||
"node": { | ||
"selector": [ | ||
"html" | ||
], | ||
"source": "<html><head></head><body>\n</body></html>", | ||
"xpath": [ | ||
"/html" | ||
] | ||
}, | ||
"impact": "serious", | ||
"result": "failed" | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"testEngine": { | ||
"name": "axe-core", | ||
"version": "3.3.2" | ||
}, | ||
"testRunner": { | ||
"name": "axe" | ||
}, | ||
"testEnvironment": { | ||
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/78.0.3882.0 Safari/537.36", | ||
"windowWidth": 800, | ||
"windowHeight": 600, | ||
"orientationAngle": 0, | ||
"orientationType": "portrait-primary" | ||
}, | ||
"timestamp": "2019-03-22T19:12:06.129Z", | ||
"url": "http://localhost/", | ||
"toolOptions": { | ||
"reporter": "v1" | ||
}, | ||
"violations": [ | ||
{ | ||
"id": "document-title", | ||
"impact": "serious", | ||
"tags": [ | ||
"cat.text-alternatives", | ||
"wcag2a", | ||
"wcag242" | ||
], | ||
"description": "Ensures each HTML document contains a non-empty <title> element", | ||
"help": "Documents must have <title> element to aid in navigation", | ||
"helpUrl": "https://dequeuniversity.com/rules/axe/3.3/document-title?application=axe-puppeteer", | ||
"nodes": [ | ||
{ | ||
"any": [ | ||
{ | ||
"id": "doc-has-title", | ||
"data": null, | ||
"relatedNodes": [], | ||
"impact": "serious", | ||
"message": "Document does not have a non-empty <title> element" | ||
} | ||
], | ||
"all": [], | ||
"none": [], | ||
"impact": "serious", | ||
"html": "<html><head></head><body>\n</body></html>", | ||
"target": [ | ||
"html" | ||
], | ||
"xpath": [ | ||
"/html" | ||
], | ||
"failureSummary": "Fix any of the following:\n Document does not have a non-empty <title> element" | ||
} | ||
] | ||
} | ||
], | ||
"passes": [], | ||
"incomplete": [], | ||
"inapplicable": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ | ||
"testEngine": { | ||
"name": "axe-core", | ||
"version": "3.3.2" | ||
}, | ||
"testRunner": { | ||
"name": "axe" | ||
}, | ||
"testEnvironment": { | ||
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/78.0.3882.0 Safari/537.36", | ||
"windowWidth": 800, | ||
"windowHeight": 600, | ||
"orientationAngle": 0, | ||
"orientationType": "portrait-primary" | ||
}, | ||
"timestamp": "2019-03-22T19:12:06.129Z", | ||
"url": "http://localhost/", | ||
"toolOptions": { | ||
"reporter": "v2" | ||
}, | ||
"violations": [ | ||
{ | ||
"id": "document-title", | ||
"impact": "serious", | ||
"tags": [ | ||
"cat.text-alternatives", | ||
"wcag2a", | ||
"wcag242" | ||
], | ||
"description": "Ensures each HTML document contains a non-empty <title> element", | ||
"help": "Documents must have <title> element to aid in navigation", | ||
"helpUrl": "https://dequeuniversity.com/rules/axe/3.3/document-title?application=axe-puppeteer", | ||
"nodes": [ | ||
{ | ||
"any": [ | ||
{ | ||
"id": "doc-has-title", | ||
"data": null, | ||
"relatedNodes": [], | ||
"impact": "serious", | ||
"message": "Document does not have a non-empty <title> element" | ||
} | ||
], | ||
"all": [], | ||
"none": [], | ||
"impact": "serious", | ||
"html": "<html><head></head><body>\n</body></html>", | ||
"target": [ | ||
"html" | ||
], | ||
"xpath": [ | ||
"/html" | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"passes": [], | ||
"incomplete": [], | ||
"inapplicable": [] | ||
} |
Oops, something went wrong.