Skip to content

Commit

Permalink
a11y min fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rahuljain-dev committed Sep 18, 2023
1 parent eead582 commit bd0f21a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
4 changes: 2 additions & 2 deletions plugin/a11y/test/a11y-reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function reportA11y(expectedViolations, expectedIncompleteViolations, set

before(() => {
report = getReport();
console.log("Violations Report",report)
console.log("Violations Report", report);

Check failure on line 25 in plugin/a11y/test/a11y-reporter.js

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement
});

Object.entries(expectedViolations).forEach(([violation, issues]) => {
Expand All @@ -44,7 +44,7 @@ export function reportA11y(expectedViolations, expectedIncompleteViolations, set

before(() => {
report = getReport();
console.log("Incomplete Report",report)
console.log("Incomplete Report", report);

Check failure on line 47 in plugin/a11y/test/a11y-reporter.js

View workflow job for this annotation

GitHub Actions / lint

Unexpected console statement
});

Object.entries(expectedIncompleteViolations).forEach(([violation, issues]) => {
Expand Down
5 changes: 0 additions & 5 deletions plugin/a11y/test/specs/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@ 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,
'color-contrast-enhanced': 15,
'color-contrast': 1,
'landmark-one-main': 1,
'meta-viewport': 1,
'page-has-heading-one': 1,
Expand All @@ -21,7 +17,6 @@ const EXPECTED_VIOLATIONS = {

const EXPECTED_INCOMPLETE_VIOLATIONS = {
'aria-allowed-role': 7,
'aria-prohibited-attr': 1,
'aria-valid-attr-value': 1,
'color-contrast-enhanced': 2,
};
Expand Down
4 changes: 0 additions & 4 deletions plugin/a11y/test/specs/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ 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,
'landmark-one-main': 1,
'meta-viewport': 1,
Expand All @@ -19,8 +17,6 @@ const EXPECTED_VIOLATIONS = {

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

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

0 comments on commit bd0f21a

Please sign in to comment.