Accessibility Standard
Global Configuration Accessibility Standard
The accessibility standard setting determines which set of accessibility rules axe Watcher uses during testing. Different standards correspond to different versions and conformance levels of WCAG (Web Content Accessibility Guidelines) and other accessibility specifications. This setting controls the baseline criteria against which your web pages are evaluated.
Default Value
When you don't specify an accessibility standard override, axe Watcher uses the standard configured in your organization's global configuration. This is typically set by your administrator to ensure consistent testing across all teams.
Overriding
You can override the accessibility standard when your organization's global configuration permits it. Your administrator sets which standards are available for override in the Global panel of axe Configuration. If you attempt to use a standard that isn't permitted, you'll receive a 422 error from the server.
You cannot use the accessibilityStandard override together with runOptions.runOnly—these options are mutually exclusive and will cause an error if combined.
Available Options
JavaScript/TypeScript (string):
- 'All' - Tests against all available standards
- 'WCAG 2.2 AAA'
- 'WCAG 2.2 AA'
- 'WCAG 2.2 A'
- 'WCAG 2.1 AAA'
- 'WCAG 2.1 AA'
- 'WCAG 2.1 A'
- 'WCAG 2.0 AAA'
- 'WCAG 2.0 AA'
- 'WCAG 2.0 A'
- 'Trusted Tester v5'
- 'EN 301 549'
Java (ConfigurationOverrides.AccessibilityStandard enum values):
WCAG2A- WCAG 2.0 Level AWCAG2AA- WCAG 2.0 Level AAWCAG2AAA- WCAG 2.0 Level AAAWCAG21A- WCAG 2.1 Level AWCAG21AA- WCAG 2.1 Level AAWCAG21AAA- WCAG 2.1 Level AAAWCAG22A- WCAG 2.2 Level AWCAG22AA- WCAG 2.2 Level AAWCAG22AAA- WCAG 2.2 Level AAATTV5- Trusted Tester v5EN301549- EN 301 549ALL- All standards
JavaScript/TypeScript Example
const config = {
axe: {
apiKey: process.env.AXE_API_KEY,
projectId: process.env.AXE_PROJECT_ID,
configurationOverrides: {
accessibilityStandard: 'WCAG 2.2 AA'
}
}
};Java Example
ConfigurationOverrides overrides = new ConfigurationOverrides()
.setAccessibilityStandard(ConfigurationOverrides.AccessibilityStandard.WCAG22AA);
AxeWatcherOptions options = new AxeWatcherOptions()
.setApiKey(System.getenv("AXE_API_KEY"))
.setProjectId(System.getenv("AXE_PROJECT_ID"))
.setConfigurationOverrides(overrides);