Skip to content
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

Question: How to skip failures for some specific tags and throw errors for other tags? #155

Open
bledbytyci opened this issue Mar 2, 2023 · 1 comment

Comments

@bledbytyci
Copy link

bledbytyci commented Mar 2, 2023

Hi everyone, I'm new to cypress-axe. :)

I'm currently setting up cypress-axe for component testing and wanted to ask a question related to tags and assertions.

I want to throw an error if an element fails the 'wcag21a' criteria, but at the same time log errors from other tags such as 'cat.*' or 'best-practice'. Is there any preferred way we can change how the assertion works from the usage side?

Thanks in advance!!

@durasj
Copy link

durasj commented Aug 27, 2023

Hi @bledbytyci,

Check out https://www.deque.com/axe/core-documentation/api-documentation/#api-name-axeconfigure where you will see you can override rules and set their matches function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants