ttsukagoshi / axe-scan

A CLI tool to test web accessibility on multiple web pages based on a list of URLs in a text file. Run on Node.js and uses axe-core and Puppeteer as its testing and browsing engines.
https://www.scriptable-assets.page/axe-scan/
MIT License
24 stars 5 forks source link

Configure excluded CSS selectors #154

Open claudiu-cristea opened 9 months ago

claudiu-cristea commented 9 months ago

Problem

There are cases when you want to exclude some areas from the page to be checked. I'm running axe-scan in a testing pipeline and I'm triggering a failure when there are violations. But the pages from certain URLs might contain user content with A11Y violations and that is something we can't control/enforce, thus we want to exclude from scan

Proposal

ttsukagoshi commented 9 months ago

Hi @claudiu-cristea, thank you for a great suggestion! Adding the exclude option seems relatively straightforward. I'll see if I can add them in the coming updates 👍