Automated Accessibility Testing Libraries and Tools (@sa11y packages) based on axe-core providing support for Jest unit tests, WebdriverIO component/integration tests used by teams in Salesforce. However, they are not specific to Salesforce and can be used to test any UI supported by axe-core for accessibility. These libraries are designed to be flexible, customizable and reusable to support automated accessibility testing in different testing workflows from unit to integration tests.
This repo contains the following packages for automated accessibility testing:
toBeAccessible()
accessibility matcher for Jest
assertAccessible()
, assertAccessibleSync()
APIs that can be used with WebdriverIO to check accessibility of web pages rendered in browsersaxe.run
use this packagegroupViolationResultsProcessor
also made available to group the a11y violations per jest test case as the existing formatter would generate test failures for each violation@sa11y
libraries to be injected into a browser (using webdriver) and executed from integration testing workflows.@sa11y
packages@sa11y
packages@sa11y
packagesA wise person once said…
"Don't talk to me until I've had coffee and you've run axe"
(Image courtesy: @shleewhite, @jorycunningham)