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

UIROLES-131 add deque axe a11y tests #93

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

lint

c247547
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Draft

UIROLES-131 add deque axe a11y tests #93

lint
c247547
Select commit
Loading
Failed to load commit list.
GitHub Actions / Jest Unit Test Results failed Jan 25, 2025 in 0s

1 fail, 7 pass in 21s

1 files  ±0  2 suites  ±0   21s ⏱️ ±0s
8 tests ±0  7 ✅ ±0  0 💤 ±0  1 ❌ ±0 
9 runs  ±0  8 ✅ ±0  0 💤 ±0  1 ❌ ±0 

Results for commit c247547. ± Comparison against earlier commit e5345ba.

Annotations

Check warning on line 0 in SettingsPage has no a11y violations according to axe

See this annotation in the file changed.

@github-actions github-actions / Jest Unit Test Results

SettingsPage has no a11y violations according to axe (SettingsPage has no a11y violations according to axe) failed

artifacts/jest-junit/junit.xml [took 0s]
Raw output
Error: expect(received).toHaveNoViolations(expected)

Expected the HTML found at $('input') to have no violations:

<input data-testid="search-field">

Received:

"Form elements must have labels (label)"

Fix any of the following:
  Form element does not have an implicit (wrapped) <label>
  Form element does not have an explicit <label>
  aria-label attribute does not exist or is empty
  aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty
  Element has no title attribute
  Element has no placeholder attribute
  Element's default semantics were not overridden with role="none" or role="presentation"

You can find more information on this issue here: 
https://dequeuniversity.com/rules/axe/4.9/label?application=axeAPI
    at Object.toHaveNoViolations (/home/runner/work/ui-authorization-roles/ui-authorization-roles/src/settings/SettingsPage/SettingsPage.test.js:161:21)