How to do accessibility testing
Doing all 4 steps in the correct order is the most efficient way to do accessibility testing.
To accessibility test your service, you need to do 4 things:
- Validate your HTML
- Run automated tools
- Do manual testing
- Do assistive technology testing
Doing all 4 steps in the correct order is the most efficient way to do accessibility testing.
Fixing accessibility issues often means rewriting the HTML. Whenever you add or change your user interface you need to start the testing process again to make sure you haven’t broken anything. Doing it in the wrong order will create more work and take more time.
Automated testing
Validating your HTML
Accessibility relies on your HTML being correct. Before running any accessibility tools, you should validate the HTML and fix any errors.
You should validate your HTML as soon as you have finished building a page. Running it on your local machine can save you time by allowing you to fix issues before you write git commits or push code.
Automated testing using browser plugins
After your HTML is valid, you should run automated tools in the browser.
Automated tools are a quick and simple way to catch obvious accessibility barriers but the they will not find everything. The best tools, on their own, only find around 40% of known issues so you can’t rely on them. You can read the GDS accessibility tools audit to see how some common tools performed.
Each accessibility browser plugin will find slightly different things, so we use 3. They are quick, each one only takes a few seconds.
We recommend the following browser plugins to test your service:
With these 3 tools combined, you can expect to find up-to 50% of common accessibility barriers. You should make sure your HTML is valid and you have no reported errors using the browser plugins before moving onto manual testing.
If an automated tool is showing an issue against a HS2 component or pattern you should raise an issue with the HS2 Design System team. If you have used the component to it’s specifications, you should not just hack it locally to silence the tool. If you hack it, you create inconsistencies between your service and the rest of HS2's services. You can generally consider it a false positive unless we release an update to address it.
We have published examples on:
- how to use the ARC Toolkit extension
- how to use the Axe DevTools extension
- how to use the Wave extension
Manual testing
You must do manual accessibility testing and assistive technology testing. You also need to retain your results as evidence.
We recommend the Accessibility Insights assessment tool.
We have published examples on:
Assistive technology testing
WCAG states that in order to be compliant, a website must work with a range of user agents, including assistive technologies. A user agent is anything a person is using to navigate your website, such as a browser and a screen reader.
The 3 main types of assistive technology are:
- Screen reading software
- Voice recognition software
- Screen magnification software
For compliance, as a minimum, you should test your service with at least 1 of each of the 3 main types. However, to make sure your website is as accessible as possible, you should follow the GOV.UK Service Standard’s recommendations for assistive technology combinations.
You also need to retain your results as evidence.
We have published examples on the following screen readers:
We have published examples on the following voice controllers:
We have published examples on the following screen magnifiers: