Skip to content

Commit

Permalink
testing pa11y with new config
Browse files Browse the repository at this point in the history
  • Loading branch information
btylerburton committed Jan 17, 2025
1 parent 9e1ee08 commit 09d0051
Show file tree
Hide file tree
Showing 5 changed files with 164 additions and 139 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/content_scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ jobs:
shell: bash
run: npm install

- name: Build eleventy and run cypress
- name: Build eleventy and run pa11y-ci
run: npm run pa11y-ci:gh

- name: Run cypress
run: npm run cypress:gh

- name: cypress-artifacs
Expand Down
11 changes: 11 additions & 0 deletions .pa11yci.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
defaults: {
concurrency: 1,
// We're ignoring iframe elements because they're not used on the site, yet
// DAP inserts an iframe into the DOM, and that iframe causes pa11y errors.
hideElements: "iframe",
chromeLaunchConfig: {
args: ["--no-sandbox"]
},
},
};
Loading

0 comments on commit 09d0051

Please sign in to comment.