Skip to content
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

add a11y auditing #1386

Merged
merged 1 commit into from
Jul 3, 2019
Merged

Conversation

stacylondon
Copy link

No description provided.

@stacylondon stacylondon changed the title (WIP) add a11y auditing add a11y auditing Jul 2, 2019
.gitignore Outdated
# test reports
test-reports/
# a11y reports
a11y-audit.json
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we put this with our other reports?

Copy link
Author

Choose a reason for hiding this comment

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

done!


- run:
name: Accessibility Audit
command: node browser-test-harness.js yarn test:accessibility
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we get the json output added as an artifact?

Copy link
Author

Choose a reason for hiding this comment

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

done!

@stacylondon stacylondon force-pushed the slondon/add-a11y-auditing branch from 6803bae to bb2bf71 Compare July 3, 2019 20:40
package.json Outdated
@@ -33,6 +33,8 @@
"prettier_target": "*.{js,jsx,md,json} src/**/*.{js,jsx,md,json} test/**/*.{js,jsx,md,json} docs/**/*.{js,jsx,md,json} stories/**/*.{js,jsx,md,json} cypress/**/*.{js,jsx,md,json}"
},
"scripts": {
"test:accessibility": "lighthouse http://localhost:9002/iframe.html?id=single-vertical-list--basic --chrome-flags='--headless' --output=json --output-path=./test-reports/lighthouse/a11y-audit.json && yarn test:accessibility:report",
"test:accessibility:report": "node a11y-audit-parse.js",
Copy link
Collaborator

Choose a reason for hiding this comment

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

does this need to be a separate step?

Copy link
Author

Choose a reason for hiding this comment

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

At first I was thinking I might have test:accessibility and test:accessibility:ci and then they could share that common step but now there is only a need for test:accessibility so I'll consolidate and just have the one NPM script for this.

Copy link
Author

Choose a reason for hiding this comment

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

Done; just a single step now.

@stacylondon stacylondon force-pushed the slondon/add-a11y-auditing branch from bb2bf71 to eb52c4b Compare July 3, 2019 23:48
@alexreardon alexreardon merged commit 7ad5993 into accessibility-audit Jul 3, 2019
@alexreardon alexreardon deleted the slondon/add-a11y-auditing branch July 29, 2019 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants