-
Notifications
You must be signed in to change notification settings - Fork 334
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
Run axe in jest, with failing builds #522
Conversation
36403bc
to
229ce1c
Compare
068180a
to
8eaaf4a
Compare
8eaaf4a
to
9b2ae23
Compare
9b2ae23
to
99a865b
Compare
99a865b
to
e7af611
Compare
src/components/table/README.md
Outdated
@@ -22,7 +22,7 @@ More information about when to use table can be found on [GOV.UK Design System]( | |||
|
|||
<tr class="govuk-c-table__row"> | |||
|
|||
<td class="govuk-c-table__cell" scope="row">January</td> | |||
<td class="govuk-c-table__cell">January</td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can I get a review on this change? I'm not super savvy on table semantics.
Talked through this PR with @igloosi we agreed we should remove the table issue from this PR and raise an issue to fix it. |
nicely explained by @NickColley how it works. would love to have @alex-ju @hannalaakso and @36degrees to have a look as well |
e7af611
to
6e782cd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me.
package.json
Outdated
@@ -54,6 +53,7 @@ | |||
"gulp-to-markdown": "^1.0.0", | |||
"gulp-uglify": "^3.0.0", | |||
"jest": "^22.1.4", | |||
"jest-axe": "^2.1.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shall we use 2.1.1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
Includes jest-axe, which allows us to run axe-core directly within our unit tests.
6e782cd
to
e667d03
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great 🎉 It caught an image without alt tag and a checkboxes with empty name attributes.
See https://github.com/nickcolley/jest-axe for source code for the module.
Timings, before:
Timings, after:
This work is based on the work on https://github.com/alphagov/govuk_publishing_components 's interaction with aXe