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

Document a workflow for axe accessibility testing #39

Closed
calebeby opened this issue Feb 24, 2021 · 3 comments
Closed

Document a workflow for axe accessibility testing #39

calebeby opened this issue Feb 24, 2021 · 3 comments

Comments

@calebeby
Copy link
Member

It would be nice if we could interject accessibility tests at different points in our tests.

Chances are, this would work out of the box (I have not tried it):

https://github.com/dequelabs/axe-core-npm/tree/develop/packages/puppeteer

We should check if it works, add an example using it (also maybe add the workflow to the README), and decide whether it makes sense to pull in that library to Test Mule to make it easier to use.

@calebeby calebeby changed the title Provide a workflow for accessibility testing Provide/Document a workflow for accessibility testing Feb 25, 2021
@calebeby calebeby assigned calebeby and unassigned calebeby Feb 26, 2021
@calebeby
Copy link
Member Author

calebeby commented Apr 7, 2021

@axe-core/puppeteer is definitely still an option, but I tried out @wordpress/jest-puppeteer-axe which adds Jest assertions which is a little nicer.

await expect(page).toPassAxeTests();

@calebeby
Copy link
Member Author

calebeby commented Apr 7, 2021

FWIW @wordpress/jest-puppeteer-axe is a very small wrapper around @axe-core/puppeteer, so it is probably possible for us to make our own wrapper that allows passing live element references in the error messages which would be probably more helpful for debugging.

https://github.com/WordPress/gutenberg/blob/trunk/packages/jest-puppeteer-axe/src/index.js

@calebeby calebeby changed the title Provide/Document a workflow for accessibility testing Document a workflow for accessibility testing Apr 12, 2021
@calebeby calebeby changed the title Document a workflow for accessibility testing Document a workflow for AXE accessibility testing Apr 30, 2021
@calebeby calebeby changed the title Document a workflow for AXE accessibility testing Document a workflow for axe accessibility testing Apr 30, 2021
@calebeby
Copy link
Member Author

calebeby commented Jun 6, 2022

#494

Released in v2.2.0

@calebeby calebeby closed this as completed Jun 6, 2022
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

No branches or pull requests

1 participant