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

[Issue #40]: Setup pa11y-ci #41

Merged
merged 63 commits into from
Jun 12, 2024
Merged

[Issue #40]: Setup pa11y-ci #41

merged 63 commits into from
Jun 12, 2024

Conversation

rylew1
Copy link
Collaborator

@rylew1 rylew1 commented May 17, 2024

Summary

Fixes #40

Time to review: 5 min

Changes proposed

  • Add pa11y-ci to run PR checks
    • Tests for each of the pages we have so far

Future work:

Copy link

github-actions bot commented May 17, 2024

Coverage report for ./frontend

St.
Category Percentage Covered / Total
🟢 Statements 83.27% 846/1016
🟡 Branches 68.31% 222/325
🟡 Functions 75.46% 163/216
🟢 Lines 82.81% 795/960

Test suite run success

168 tests passing in 54 suites.

Report generated by 🧪jest coverage report action from 2cdebec

@github-actions github-actions bot added the shell label May 18, 2024
@rylew1 rylew1 requested review from acouch and coilysiren May 18, 2024 01:08
@rylew1 rylew1 marked this pull request as ready for review June 6, 2024 14:14
@navapbc navapbc deleted a comment from github-actions bot Jun 6, 2024
@rylew1
Copy link
Collaborator Author

rylew1 commented Jun 6, 2024

@andycochran @acouch - this is ready for review

@rylew1 rylew1 requested a review from btabaska June 12, 2024 17:42
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these changes intended to be included in this pa11y ticket?

},
{
"url": "http://localhost:3000/search?status=forecasted,posted",
"viewport": { "width": 320, "height": 480 },
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we are going to set viewport to width 320 and height 480 on all components we can just set that as a default and then change on the few components where we don't want that behavior

]
},
{
"url": "http://localhost:3000",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unsure of why we are duplicating each url twice with truncated actions in the bottom one. Is this to take different actions on the second iteration of the URL?

jobs:
build:
name: Pa11y-ci tests
runs-on: ubuntu-latest
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we are running this locally, we may want to have it set to a matrix of OS' like the example pa11y tests show. Since locally we would be running on macOS-latest.

name: test (${{ matrix.os }}, node ${{ matrix.node-version }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [18, 20]

@rylew1 rylew1 merged commit a774ada into main Jun 12, 2024
18 checks passed
@rylew1 rylew1 deleted the rylew/40-pa11y-ci-setup branch June 12, 2024 19:09
acouch pushed a commit that referenced this pull request Sep 18, 2024
Fixes HHS#2077

- Add `pa11y-ci` to run PR checks
   - Tests for each of the pages we have so far
acouch pushed a commit that referenced this pull request Sep 18, 2024
Fixes HHS#2077

- Add `pa11y-ci` to run PR checks
   - Tests for each of the pages we have so far
acouch pushed a commit to HHS/simpler-grants-gov that referenced this pull request Sep 18, 2024
Fixes #2077

- Add `pa11y-ci` to run PR checks
   - Tests for each of the pages we have so far
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Task]: Setup pa11y-ci
3 participants