uswds / uswds-site

USWDS website and documentation
https://designsystem.digital.gov
Other
189 stars 142 forks source link

Add ability to test subpages ie Component subpages. #1090

Open mejiaj opened 3 years ago

mejiaj commented 3 years ago

Description

Our accessibility script takes an array of URLs. So if we wanted to test all components, we'd have to include all of them. Instead, we should be able to use something like globbing to ensure all subpages are tested.

Currently:

const PAGES = [
  '/',
  '/page-templates/landing/',
  '/page-templates/docs/',
];

Source: run-axe.js:13

Prevents the run-axe.js file from becoming unwieldy.

Additional information [optional]

thisisdano commented 3 years ago

What would this take to complete? I love the idea of using globs, but I also don't really care about having an unwieldy config file at the moment