axe-core icon indicating copy to clipboard operation
axe-core copied to clipboard

Cypress accessibility Automation

Open prudhvinani opened this issue 1 year ago • 2 comments

Hi All,

We are currently doing accessibility testing in cypress and while doing it we observed a different behavior from cypress in local while running cypress for accessibility is getting passed but in the CI/CD pipeline accessibility is facing for few scenarios intermediately (not happening every time)

I had listed down the error below .Can some lets us know why we are seeing this behavior.

image

prudhvinani avatar Jul 21 '22 09:07 prudhvinani

Thanks for the issue. It's hard to say from the screenshot, but if I were to take a guess based on the part of the node selector I can see, something is generating IDs automatically and is generating the same ID twice on the page. It would explain why it's intermittent.

straker avatar Jul 21 '22 14:07 straker

@prudhvinani were you able to figure out if it was related to automatic generation of IDs?

straker avatar Aug 05 '22 14:08 straker

Closing due to lack of activity. Please feel free to reopen if you can provide more information. Also please note that as of v4.8.0 the duplicate-id-active rule has been deprecated and will be removed in v5.0. The rule is no longer run by default so will not produce the violations shown in the screenshot.

straker avatar Nov 17 '23 17:11 straker