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

False Positives Occurring

Open rowindatas25 opened this issue 4 years ago • 5 comments

Hi, I am currently using cypress-axe and I'm experiencing the same issues that were identified in this issue that's been closed: https://github.com/component-driven/cypress-axe/issues/22

I left a comment there but didn't get a response and I tried implementing the other attempts on that issue board. I was just hoping to get a clear understanding of what the fix was or if there was a fix/workaround at all. Below are the versions I'm using for Cypress:

Cypress version: 6.1 cypress-axe version: 0.12.0

I am also using cypress-axe in conjunction with Storybook: 5.3.21.

rowindatas25 avatar Dec 30 '20 22:12 rowindatas25

I get the same issue with [email protected], cypress-axe: 0.12.0.

Mine is on a Gatsby project.

arielperez82 avatar Jan 05 '21 18:01 arielperez82

Same here, and also using Storybook. @rowindatas25 are you also using the iframe.html url?

I also installed axe as a Storybook Addon, which doesn't complain - maybe because it's not testing for these..

tfrijsewijk avatar Apr 09 '21 11:04 tfrijsewijk

I have a page with no headers in it and running cy.checkA11y() (using cypress-axe 0.8.1) still reports the error "page-has-heading-one on 1 Node"

jb0071913 avatar May 27 '21 11:05 jb0071913

Has anyone found a solution to this issue? @rowindatas25 @arielperez82 @tfrijsewijk @jb0071913 @avanslaars I use Storybook and iframe.html as well.

cypress : 10.2.0 axe-core : 4.4.3 cypress-axe : 1.0.0

ranjithamr avatar Aug 31 '22 14:08 ranjithamr

Only way I was able to get around this was to override the implementation for injectAxe and checkAlly to assert that axe was indeed injected and initialized before the assertions ran. I think I also used the waitUntil library to help with that.

Sorry I can't provide any more detail as I no longer have access to that code.

arielperez82 avatar Aug 31 '22 15:08 arielperez82