From b3f99db6b2a9ceab0aa1544b0ded0a90848e01bf Mon Sep 17 00:00:00 2001 From: rahuljain-dev Date: Mon, 18 Sep 2023 10:54:45 +0530 Subject: [PATCH] a11y fixes --- plugin/a11y/test/specs/browser.js | 7 +++++-- plugin/a11y/test/specs/home.js | 8 +++++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/plugin/a11y/test/specs/browser.js b/plugin/a11y/test/specs/browser.js index dd373011cc..a46c3f6d3d 100644 --- a/plugin/a11y/test/specs/browser.js +++ b/plugin/a11y/test/specs/browser.js @@ -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, @@ -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, }; diff --git a/plugin/a11y/test/specs/home.js b/plugin/a11y/test/specs/home.js index e060538188..e3860d62aa 100644 --- a/plugin/a11y/test/specs/home.js +++ b/plugin/a11y/test/specs/home.js @@ -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', () => {