2021年1月5日星期二

False Positives in Cypress-axe Plugin for Accessibility Testing

I am running accessibility testing using the cypress-axe plugin with cypress and storybook. The cypress-axe plugin continually gives false positives when having made the required changes.

The false positive is for page-has-heading-one but I clearly have a h1 element present in the screenshot.

False Positive screenshot

Cypress version: 6.1

cypress-axe version: 0.12.0

Here's the html for the element in question:

<div role="main"class="example-slider">    <h1 role="banner">Slider</h1>      <mat-slider         min="1"        max="50"        step="0.5"        themePalette="primary"        id="slide"        value="1.5"        aria-label="slider"        role="contentinfo"        >      </mat-slider>    </div>  

Thank you ahead of time if anyone can help with this.

https://stackoverflow.com/questions/65588794/false-positives-in-cypress-axe-plugin-for-accessibility-testing January 06, 2021 at 09:05AM

没有评论:

发表评论