Skip to content

USWDS - Testing: Add more URLs to axe testing. #1092

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

Closed
wants to merge 9 commits into from
Closed

Conversation

mejiaj
Copy link
Contributor

@mejiaj mejiaj commented Nov 19, 2020

Description

Related to uswds/uswds/issues/3733.

Added the following URLs to testing:

  • documentation/designers/
  • documentation/implementations/
  • about/product-roadmap/
  • utilities/
  • design-tokens/
  • page-templates/

Additional information

a11y issues found:

Design tokens - 1 axe violation
/design-tokens/ Found 1 aXe violations.
[
  {
    id: 'scope-attr-valid',
    impact: 'moderate',
    tags: [ 'cat.tables', 'best-practice' ],
    description: 'Ensures the scope attribute is used correctly on tables',
    help: 'scope attribute should be used correctly',
    helpUrl: 'https://dequeuniversity.com/rules/axe/3.5/scope-attr-valid?application=axeAPI',
    nodes: [
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object],
      [Object], [Object], [Object]
    ]
  }
]
Page templates - 1 axe violation
/page-templates/ Found 1 aXe violations.
[
  {
    id: 'heading-order',
    impact: 'moderate',
    tags: [ 'cat.semantics', 'best-practice' ],
    description: 'Ensures the order of headings is semantically correct',
    help: 'Heading levels should only increase by one',
    helpUrl: 'https://dequeuniversity.com/rules/axe/3.5/heading-order?application=axeAPI',
    nodes: [ [Object], [Object] ]
  }
]
Utilities - 1 axe violation
/utilities/ Found 1 aXe violations.
[
  {
    id: 'scope-attr-valid',
    impact: 'moderate',
    tags: [ 'cat.tables', 'best-practice' ],
    description: 'Ensures the scope attribute is used correctly on tables',
    help: 'scope attribute should be used correctly',
    helpUrl: 'https://dequeuniversity.com/rules/axe/3.5/scope-attr-valid?application=axeAPI',
    nodes: [
      [Object], [Object],
      [Object], [Object],
      [Object], [Object],
      [Object], [Object],
      [Object], [Object]
    ]
  }
]

⚠️ These issues will also appear on the individual Component pages once we start testing those.

Related Issues


Before you hit Submit, make sure you’ve done whichever of these applies to you:

  • Follow the 18F Front End Coding Style Guide and Accessibility Guide.
  • Run npm test and make sure the tests for the files you have changed have passed.
  • Run your code through HTML_CodeSniffer and make sure it’s error free.
  • Title your pull request using this format: [Website] - [UI component]: Brief statement describing what this pull request solves.

@mejiaj
Copy link
Contributor Author

mejiaj commented Nov 24, 2020

Once this gets merged in it will cause tests to fail because of the newly discovered accessibility issues (#1093 & #1094)

@thisisdano
Copy link
Contributor

No longer necessary given the full-site accessibility scans we added in #1227

@thisisdano thisisdano closed this Jun 7, 2021
@mejiaj mejiaj deleted the jm-a11y-testing branch December 19, 2022 20:46
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

Successfully merging this pull request may close these issues.

2 participants