30 Minutes or Less:
The Magic of Automated Accessibility Testing
Marcy Sutton, Seattle, WA
Accessibility Engineer, Angular Core Team Member
Slides: http://marcysutton.com/jsconf2015
Accessibility is the answer to a more inclusive Web.
(Pizza is also always the answer.)
Accessibility Basics
- Alternative text
- Document structure & hierarchy
- HTML semantics
- Keyboard interactivity
- Color contrast
- Focus management
More principles
How to Accessibility
Let tooling to do some heavy lifting for you.
Let's talk about:
- Manual Testing
- Sorta-Automated Testing
- Definitely Automated Testing
But automating’s no substitute for...
real user feedback
* Inclusive of people with disabilities
First thing I do:
Tab through a page with
the keyboard
Next thing:
Use a screen reader
Let's do an audit
Chrome Accessibility Developer Tools
Open Source Audit Library
What do you do with those?
Definitely Automated Testing
by Addy Osmani
Ways to Integrate
- Run on save
- Run on commit
- Run on deploy
Protractor
Test for:
- Focus management
- Live updates
- Color contrast
Write some tests, deliver some audits
Runs your tests against
Chrome A11y Developer Tools & Tenon API
Unit Testing for Accessibility
Opportunities:
- Watched ARIA properties
- Keyboard operability
- Text alternatives
- Semantics
Example: ngAria
<some-checkbox> custom element
ngAria Unit Tests
Accessibility Testing,
delivered
- Keyboard, screen reader
- Firefox Web Developer Toolbar
Chrome Accessibility Developer Tools
- A11y, Protractor, Unit testing
Let's eat.