website/docs/accessibility-testing/LambdaTest.md
You can easily integrate accessibility tests in your WebdriverIO test suites using TestMu AI Accessibility Testing.
TestMu AI Accessibility Testing helps you identify and fix accessibility issues in your web applications. The following are the key advantages:
Follow these steps to integrate your WebdriverIO test suites with TestMu AI's Accessibility Testing:
npm install --save-dev @lambdatest/wdio-lambdatest-service
wdio.conf.js configuration file.exports.config = {
//...
user: process.env.LT_USERNAME || '<lambdatest_username>',
key: process.env.LT_ACCESS_KEY || '<lambdatest_access_key>',
capabilities: [{
browserName: 'chrome',
'LT:Options': {
platform: 'Windows 10',
version: 'latest',
accessibility: true, // Enable accessibility testing
accessibilityOptions: {
wcagVersion: 'wcag21a', // WCAG version (wcag20, wcag21a, wcag21aa, wcag22aa)
bestPractice: false,
needsReview: true
}
}
}],
services: [
['lambdatest', {
tunnel: false
}]
],
//...
};
npx wdio run wdio.conf.js
The accessibilityOptions object supports the following parameters:
wcagVersion: Specify the WCAG standard version to test against
wcag20 - WCAG 2.0 Level Awcag21a - WCAG 2.1 Level Awcag21aa - WCAG 2.1 Level AA (default)wcag22aa - WCAG 2.2 Level AAbestPractice: Include best practice recommendations (default: false)
needsReview: Include issues that need manual review (default: true)
After your tests complete, you can view detailed accessibility reports in the TestMu AI Dashboard:
For more detailed information, visit the TestMu AI Accessibility Automation documentation.