Skip to content

Commit

Permalink
[Issue #2147]: Pa11y API setup (navapbc#99)
Browse files Browse the repository at this point in the history
Fixes #{74}

> Added API setup to PA11y
> Updated Pa11y runtime to enable FF for search

> FF requirement was discovered with Ryan while exploring feature. Will
enable the search page for proper testing
> • svg elements with an img role have an alternative text
(https://dequeuniversity.com/rules/axe/4.2/svg-img-alt?application=axeAPI)

   (html)

   <html lang="en"><head><meta charset="utf-8"><me...</html>

• svg elements with an img role have an alternative text
(https://dequeuniversity.com/rules/axe/4.2/svg-img-alt?application=axeAPI)

   (html)

   <html lang="en"><head><meta charset="utf-8"><me...</html>
>Two new errors found now that API results are loading.

![desktop-main-view](https://github.com/navapbc/simpler-grants-gov/assets/29316916/f13859bd-87a7-466d-a20b-e86a9dbe71e5)
  • Loading branch information
btabaska authored and acouch committed Sep 18, 2024
1 parent 0772c9d commit 0623cee
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci-frontend-a11y.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ jobs:
- name: Start server and log output
run: npm run start &

- name: Start API Server for search results
run: |
cd ../api
make init db-seed-local start &
cd ../frontend
# ensure the API wait script is executable
chmod +x ../api/bin/wait-for-api.sh
../api/bin/wait-for-api.sh
shell: bash

- name: Wait for frontend to be ready
run: |
# Ensure the server wait script is executable
Expand Down
3 changes: 3 additions & 0 deletions frontend/.pa11yci-desktop.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"ignoreHTTPSErrors": true,
"args": ["--disable-dev-shm-usage", "--no-sandbox"]
},
"headers": {
"Cookie": "_ff={%22showSearchV0%22:true}"
},
"actions": [
"wait for element #main-content to be visible",
"screen capture screenshots-output/desktop-main-view.png"
Expand Down
3 changes: 3 additions & 0 deletions frontend/.pa11yci-mobile.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"ignoreHTTPSErrors": true,
"args": ["--disable-dev-shm-usage", "--no-sandbox"]
},
"headers": {
"Cookie": "_ff={%22showSearchV0%22:true}"
},
"viewport": {
"width": 390,
"height": 844,
Expand Down

0 comments on commit 0623cee

Please sign in to comment.