Skip to content

Commit

Permalink
add a config file for pa11y
Browse files Browse the repository at this point in the history
  • Loading branch information
mmmavis committed Nov 29, 2023
1 parent c42029c commit b28dff0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions pa11yci.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// const BASE_URL = "https://foundation.mozilla.org";
const BASE_URL = "http://localhost:8000";

module.exports = {
defaults: {
concurrency: 4,
standard: "WCAG2AA",
runners: ["axe", "htmlcs"],
reporters: [
"cli",
["pa11y-ci-reporter-html", { destination: "./pa11y-reports" }],
],
},
urls: [
BASE_URL,
BASE_URL + "/blog",
BASE_URL + "/campaigns",
BASE_URL + "/about",
],
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"optimize": "run-p optimize:**",
"percy": "percy exec -t 750 -- npm run playwright:percy",
"pa11y:ci": "run-p --race server pa11y:test",
"pa11y:test": "wait-on -i 3000 -t 120000 -v http://127.0.0.1:8000/cms && pa11y-ci http://localhost:8000/en/",
"pa11y:test": "wait-on -i 3000 -t 120000 -v http://127.0.0.1:8000/cms && pa11y-ci --config ./pa11yci.config.js",
"playwright": "npm run playwright:wait:dev && playwright test ./tests/integration/",
"playwright:install": "playwright install chromium firefox webkit",
"playwright:wait:dev": "wait-on -i 3000 http://localhost:8000/static/_css/tailwind.compiled.css",
Expand Down

0 comments on commit b28dff0

Please sign in to comment.