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

CheckA11y - html reporter prevents test from failing #223

Open
egor-limenko opened this issue Oct 13, 2023 · 0 comments · May be fixed by #238
Open

CheckA11y - html reporter prevents test from failing #223

egor-limenko opened this issue Oct 13, 2023 · 0 comments · May be fixed by #238

Comments

@egor-limenko
Copy link

egor-limenko commented Oct 13, 2023

I have the following usage of checkA11y function

await checkA11y(
      page,
      undefined,
      {
        axeOptions: {
          runOnly: {
            type: 'tag',
            values: ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa', 'wcag22aa'],
          },
        },
      },
      false,
      'html',
      {
        outputDirPath: 'results',
        outputDir: 'accessibility-report',
        reportFileName: 'results.html',
      },
    )

As you can see, I specified false for skipFailures argument. But as soon as I specify "html" reported tests no longer fail. How can I have both "html" as a reporter and tests fail in case of a11y errors?
Thanks in advance

@aliaks-ei aliaks-ei linked a pull request Dec 4, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant