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
Problem
There are cases when you want to exclude some areas from the page to be checked. I'm running
axe-scanin 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 scanProposal
axe-coreknows to exclude areas from a11y compliance check, see https://github.com/dequelabs/axe-core/blob/develop/doc/context.md#exclude-elements-from-testaxe-core-npmalso knows to pass such options, see https://github.com/dequelabs/axe-core-npm/tree/develop/packages/puppeteer#axepuppeteerexcludeselector-string--stringaxe-scan.config.json, a list of CSS selectors to be excluded from check