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

includedImpacts is being ignored #218

Open
kirkpams opened this issue Aug 3, 2023 · 0 comments
Open

includedImpacts is being ignored #218

kirkpams opened this issue Aug 3, 2023 · 0 comments

Comments

@kirkpams
Copy link

kirkpams commented Aug 3, 2023

I'm trying to use checkA11y for just serious and critical impact levels, but I keep getting moderate violations reported. Here is my call to checkA11y:


await checkA11y(page, null, {
  axeOptions: {
    includedImpacts: [ "serious", "critical" ],
  }});

Is there something I'm missing in the syntax (or a typo somewhere)? I keep getting the following results:

Running 14 tests using 4 workers
[chromium] › tests.spec.ts:337:2 › Remaining Basic Elements › Checking for accessibility
┌─────────┬─────────────────────┬────────────┬──────────────────────────────────────────────────────┬───────┐
│ (index) │         id          │   impact   │                     description                      │ nodes │
├─────────┼─────────────────────┼────────────┼──────────────────────────────────────────────────────┼───────┤
│    0    │ 'landmark-one-main' │ 'moderate' │      'Ensures the document has a main landmark'      │   1   │
│    1    │      'region'       │ 'moderate' │ 'Ensures all page content is contained by landmarks' │   9   │
└─────────┴─────────────────────┴────────────┴──────────────────────────────────────────────────────┴───────┘
  1) [chromium] › tests.spec.ts:337:2 › Remaining Basic Elements › Checking for accessibility 

    AssertionError: 2 accessibility violations were detected

How do I get checkA11y to stop reporting these two errors (which are known and I want to ignore)?

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

1 participant