pa11y / pa11y-ci

Pa11y CI is a CI-centric accessibility test runner, built using Pa11y
https://pa11y.org
GNU Lesser General Public License v3.0
515 stars 63 forks source link

Ignore Rules when using Axe #156

Closed smustgrave closed 3 years ago

smustgrave commented 3 years ago

So I'm trying this { "defaults": { "standard": "WCAG2AA", "runners": ["axe"], "timeout": 90000, "level": "none", "chromeLaunchConfig": { "ignoreHTTPSErrors": true, "args": ["--no-sandbox"] }, "ignore": [ "Section508.D.H49.AlignAttr", "Section508.D.HeadingOrder", "WCAG2A.Principle1.Guideline1_3.1_3_1.H49.AlignAttr", "WCAG2AA.Principle1.Guideline1_3.1_3_1.H49.AlignAttr", "WCAG2AA.Principle1.Guideline1_3.1_3_1.G141", "WCAG2AAA.Principle1.Guideline1_3.1_3_1.H49.AlignAttr", "WCAG2AAA.Principle1.Guideline1_3.1_3_1_AAA.G141" ] } }

And it's not ignoring. Tested with htmlcs and works fine. Updated pa11y to 6.0.1 beforehand. I'm also using latest pa11y-ci

smustgrave commented 3 years ago

Related to https://github.com/pa11y/pa11y/pull/592 https://github.com/pa11y/pa11y-ci/issues/145

joeyciechanowicz commented 3 years ago

Those are htmlcs rules, axe has different names for rules. https://github.com/dequelabs/axe-core/blob/develop/doc/rule-descriptions.md