-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPIKE] Check all pages' accessibility #2957
base: main
Are you sure you want to change the base?
Conversation
✅ You can preview this change here:
To edit notification comments on pull requests, go to your Netlify site configuration. |
5861a47
to
d519a77
Compare
Had a brief look at |
d519a77
to
b725e14
Compare
Hey @domoscargin I've rebased this one, seems a shame to leave it I've brought over the Axe rules from alphagov/govuk-frontend@ebb9e4e added in: Locally I'm seeing Puppeteer (with Axe) disconnect after a while but let's hope it's resolved by: |
b725e14
to
10c51ec
Compare
10c51ec
to
c13b623
Compare
@domoscargin Just rebased this to see if the Looking good locally |
Darn, failed here. |
How frustrating 😭 Worth trying a separate Otherwise, let's check again when more next major updates come out 🤦♂️ |
23941bb
to
3e998ff
Compare
Another Puppeteer update so rebasing this again |
3e998ff
to
197dc39
Compare
197dc39
to
fa8e303
Compare
Had some more Axe and Puppeteer updates in #3468 so giving this one a rebase |
@domoscargin Looks like it's all working 🙌 Status check failures are now accessibility report issues, as intended |
fa8e303
to
2292132
Compare
03bd95f
to
071a6bd
Compare
I've reduced failures on this PR down to zero BUT only by disabling rules across the board. Just wanted to get this down to zero and allow us to think about how to address each of the special cases (which are all documented in The rules that cause failures unless disabled: [
'region',
'color-contrast-enhanced',
'aria-allowed-attr',
'target-size',
'aria-allowed-role'
] |
071a6bd
to
9199c96
Compare
9199c96
to
4d4d44f
Compare
Failures notes
|
I'm looking at this as part of https://github.com/alphagov/design-system-team-internal/issues/912 (internal repo) as it helps us with auditing the site for at the very least issues we've had reported to us on heading structure. I'm going to rebase it so that this is repeatable and referable but as part of this I'm going to drop 2161784 as this is where the majorty of conflicts are being reported from and we resolved this as part of #4054 As a personal take, whilst we were nervous about how long this took to run per test run, I think it'd be valuable to just have and run manually as an ocassional auditing tool. |
969033f
to
5963953
Compare
It might be an axe bug, but exclude doesn't seem to work properly with an array argument. Splitting them out reduces failures from 300+ to 139. Additionally, I've made some changes to which files are included in the glob, with a view to splitting these out and only running certain tests in certain environments to avoid jammingthings up for too long.
This was done on purpose in #304, but unclear if it still applies?
5963953
to
91ca1ac
Compare
I just looked at the failures.
|
@owenatgov reminded me today to add any potential solution. Here is what I would do: |
Popped this together to check how long it'd take to run accessibility tests on ALL our pages. Just a hacky function to get all directories with an
index.html
file, then running an axe validation test on each of those.Takes around 80 seconds on my machine, but open for ways to speed it up.
There's a few failures flagged, mostly to do with our heading order.
If taken forward, the code would need to be cleaned up and optimised.
Edit: looks like the tests took about 2m 45s.