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

axeOptions configuration issue #13

Open
pravanga opened this issue May 1, 2022 · 1 comment
Open

axeOptions configuration issue #13

pravanga opened this issue May 1, 2022 · 1 comment

Comments

@pravanga
Copy link

pravanga commented May 1, 2022

Hi All,

We had configured axeOptions values as ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa'] in our application but while running the automation tests in cypress we are getting error as below "Ensures the contrast between foreground and background colors meets WCAG 2 AA contrast ratio thresholds" I also verified the color contrast it's getting passed for WCAG AA(Attached Screenshot below) https://webaim.org/resources/contrastchecker/ .I had tried different ways but was not able to find the root cause. can someone help

accessibility

image

image

@mwmcode
Copy link
Owner

mwmcode commented May 1, 2022

Hi @pravanga

  1. this package was forked from the original when the original one stopped supporting newer versions of cypress for a while but now it seems to support latest versions so you're encouraged to switch to it if you can.
  2. axe-core, which is the core package of this one, is the one that's checking against those rules, so if you wanna make sure that your site passes axe-core's checks, you can try testing the site using their DevTools maybe?

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