-
Notifications
You must be signed in to change notification settings - Fork 749
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config options are not reflected in results #1183
Comments
I also tried restricting the const axeConfig = {
runOnly: {
type: "tag",
values: ["wcag2a"]
},
resultTypes: ["violations", "incomplete"]
}; ...
"tags": [
"cat.color",
"wcag2aa",
"wcag143"
]
...
"tags": [
"cat.sensory-and-visual-cues",
"wcag2aa",
"wcag144"
]
...
"tags": [
"cat.language",
"wcag2aa",
"wcag312"
]
...
"tags": [
"cat.text-alternatives",
"wcag2aa",
"wcag125",
"section508",
"section508.22.b"
] |
@dylanb @marcysutton i'm not sure if you can help us with this item, but we're hoping to integrage aXe internally, and this is currently blocking us. Thanks. |
@jhausler1266 The resultTypes option will not eliminate the other results, it will only truncate them. Can you provide the complete result object so we can verify? |
Thanks @jhausler1266 @dylanb The entire output json and the test js used to produce the output is at https://gist.github.com/mohanraj-r/080d97bdbba6a59a61452cd0aeb24efc For the config const axeConfig = {
runOnly: {
type: "tag",
values: ["wcag2aa"]
},
resultTypes: ["violations", "incomplete"]
} there are 2 issues I see with the output
Both of which shouldn't occur according to the config options doc |
@mohanraj-r those are definitely separate issues, as the code for those lives in different places. Can you open a separate issue regarding For However–@dylanb, as I mentioned internally the API docs are wrong for |
@marcysutton we should clarify the documentation because the behavior is as intended. For clarity: the intent of the resultTypes option is to provide a performance improvement by restricting the nodes returned for each rule to 1 node in each of the groupings not included in This provides a performance improvement by avoiding the calculation of unique selectors (expensive) for every node that would otherwise appear in the list. |
I am not able to get the config options working. I have tried with axe-webdriverjs and puppeteer (#1008)
Webdriver code:
Output (only first-level keys are shown below for brevity):
I tried the following in chrome devtools (the browser instance opened by the above selenium webdriver code):
You can see from the above output that even though the config specifies
resultTypes: ["violations", "incomplete"]
the output in both webdriverjs and directaxe.run()
invocation in devtools contains other result typesThe text was updated successfully, but these errors were encountered: