Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
split pa11y to mobile and desktop runs
Browse files Browse the repository at this point in the history
  • Loading branch information
rylew1 committed Jun 14, 2024
1 parent 4c2220d commit 72c3603
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci-frontend-a11y.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ jobs:
- name: Run pa11y-ci
run: |
set -e # Ensure the script fails if any command fails
npm run test:pa11y
npm run test:pa11y-desktop
npm run test:pa11y-mobile
echo "pa11y-ci tests finished."
- name: Upload screenshots to artifacts
if: always()
uses: actions/upload-artifact@v3
Expand Down
File renamed without changes.
17 changes: 17 additions & 0 deletions frontend/.pa11yci-mobile.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"defaults": {
"timeout": 240000,
"runners": ["axe"],
"ignore": ["color-contrast"],
"concurrency": 1,
"chromeLaunchConfig": {
"ignoreHTTPSErrors": true,
"args": ["--disable-dev-shm-usage", "--no-sandbox"]
},
"viewport": {
"width": 390,
"height": 844,
"mobile": true
}
}
}
3 changes: 2 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"storybook": "storybook dev -p 6006",
"storybook-build": "storybook build",
"test": "jest --ci --coverage",
"test:pa11y": "pa11y-ci --config .pa11yci.json --sitemap http://localhost:3000/sitemap.xml",
"test:pa11y-desktop": "pa11y-ci --config .pa11yci-desktop.json --sitemap http://localhost:3000/sitemap.xml",
"test:pa11y-mobile": "pa11y-ci --config .pa11yci-mobile.json --sitemap http://localhost:3000/sitemap.xml",
"test-update": "jest --update-snapshot",
"test-watch": "jest --watch",
"test:e2e": "npx playwright test --config ./tests/playwright.config.ts",
Expand Down

0 comments on commit 72c3603

Please sign in to comment.