diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 13f9a48c0..d1923e473 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -43,9 +43,15 @@ jobs: run: | perl -pi \ -e 's/"csp.middleware.CSPMiddleware",/$&"registrar.tests.common.MockUserLogin",/' \ - src/registrar/config/settings.py + /registrar/config/settings.py - - name: Accessibility Scan + - name: Start container working-directory: ./src # leverage the docker compose setup that we already have for local development - run: docker compose run pa11y npm run pa11y-ci + run: docker compose up -d + + - name: run pa11y + working-directory: ./src + run: | + npm i -g pa11y-ci + pa11y-ci diff --git a/src/.pa11yci b/src/.pa11yci index ce70e8537..1c6e245a1 100644 --- a/src/.pa11yci +++ b/src/.pa11yci @@ -1,22 +1,28 @@ { + "defaults": { + "concurrency": 1, + "timeout": 10000, + "hideElements": "a[href='/whoami/']" + + }, "urls": [ - "http://app:8080/", - "http://app:8080/health/", - "http://app:8080/whoami/", - "http://app:8080/register/", - "http://app:8080/register/organization/", - "http://app:8080/register/org_federal/", - "http://app:8080/register/org_election/", - "http://app:8080/register/org_contact/", - "http://app:8080/register/authorizing_official/", - "http://app:8080/register/current_sites/", - "http://app:8080/register/dotgov_domain/", - "http://app:8080/register/purpose/", - "http://app:8080/register/your_contact/", - "http://app:8080/register/other_contacts/", - "http://app:8080/register/anything_else/", - "http://app:8080/register/requirements/", - "http://app:8080/register/review/", - "http://app:8080/register/finished/" + "http://localhost:8080/", + "http://localhost:8080/health/", + "http://localhost:8080/whoami/", + "http://localhost:8080/register/", + "http://localhost:8080/register/organization/", + "http://localhost:8080/register/org_federal/", + "http://localhost:8080/register/org_election/", + "http://localhost:8080/register/org_contact/", + "http://localhost:8080/register/authorizing_official/", + "http://localhost:8080/register/current_sites/", + "http://localhost:8080/register/dotgov_domain/", + "http://localhost:8080/register/purpose/", + "http://localhost:8080/register/your_contact/", + "http://localhost:8080/register/other_contacts/", + "http://localhost:8080/register/anything_else/", + "http://localhost:8080/register/requirements/", + "http://localhost:8080/register/review/", + "http://localhost:8080/register/finished/" ] }