Skip to content

Commit

Permalink
a11y fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rahuljain-dev committed Sep 18, 2023
1 parent 69a261f commit b3f99db
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
7 changes: 5 additions & 2 deletions plugin/a11y/test/specs/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ import login from '../helpers/login';
import { reportA11y } from '../a11y-reporter.js';

const EXPECTED_VIOLATIONS = {
'aria-allowed-attr':1,
'aria-command-name': 1,
'aria-required-children':4,
'aria-roles': 3,
'aria-tooltip-name': 1,
'duplicate-id': 28,
'color-contrast-enhanced':15,
'color-contrast':1,
'landmark-one-main': 1,
'meta-viewport': 1,
'page-has-heading-one': 1,
Expand All @@ -17,8 +20,8 @@ const EXPECTED_VIOLATIONS = {
};

const EXPECTED_INCOMPLETE_VIOLATIONS = {
'aria-allowed-attr': 1,
'aria-allowed-role': 7,
'aria-prohibited-attr': 1,
'aria-valid-attr-value': 1,
'color-contrast-enhanced': 2,
};
Expand Down
8 changes: 5 additions & 3 deletions plugin/a11y/test/specs/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,20 @@ import { reportA11y } from '../a11y-reporter.js';
const EXPECTED_VIOLATIONS = {
'aria-command-name': 1,
'aria-allowed-attr': 4,
'aria-required-children':4,
'color-contrast':12,
'aria-tooltip-name': 1,
'duplicate-id': 28,
'landmark-one-main': 1,
'meta-viewport': 1,
'page-has-heading-one': 1,
region: 22,
'region': 22,
'nested-interactive': 15,
};

const EXPECTED_INCOMPLETE_VIOLATIONS = {
'aria-allowed-role': 5,
'color-contrast': 8,
'color-contrast-enhanced': 2,
'aria-required-children':1,
};

describe('Nuxeo Home', () => {
Expand Down

0 comments on commit b3f99db

Please sign in to comment.