Marie Drake, Principal Test Automation Engineer @ News UK
"1 in 5 people in the UK have a long term illness, impairment or disability"
WCAG 2.0
Perceivable
Operable
Undertandable
Robust
WCAG 2.1
Credit: Kristin Jackvony https://www.ministryoftesting.com/dojo/lessons/an-introduction-to-the-automation-test-wheel
👍🏼 Nothing beats actual user testing
👍🏼 Finds issues missed by tools
👍🏼 More reliable
👍🏼 Fast
👍🏼 Cheap
👍🏼 Easy
👍🏼 Integrated in CI/CD pipelines
Helps catch accessibility issues from your site
Browser extensions
CLI tool
Libraries to integrate with different testing frameworks
Supported by Deque systems
npm i --D cypress cypress-axe
// add it on support/index.js
import 'cypress-axe';
cy.injectAxe();
cy.checkA11y();
a11yComponentRules.forEach(component => {
describe(`${component.name} component`, () => {
it('should pass basic a11y test', () => {
cy.visit(`?name=${component.name}`);
cy.injectAxe();
if (component.disabledRules === undefined) {
cy.checkA11yWithDefaultRules();
} else {
cy.checkA11yWithCustomRule(component.disabledRules);
}
});
});
});
Marie Drake, Principal Test Automation Engineer