website/docs/accessibility-testing/BrowserStack.md
You can easily integrate accessibility tests in your WebdriverIO test suites using the Automated tests feature of BrowserStack Accessibility Testing.
To use Automated tests in BrowserStack Accessibility Testing, your tests should be running on BrowserStack Automate.
The following are the advantages of Automated tests:
Follow these steps to integrate your WebdriverIO test suites with BrowserStack's Accessibility Testing:
@wdio/browserstack-service npm package.npm install --save-dev @wdio/browserstack-service
wdio.conf.js config file.exports.config = {
//...
user: '<browserstack_username>' || process.env.BROWSERSTACK_USERNAME,
key: '<browserstack_access_key>' || process.env.BROWSERSTACK_ACCESS_KEY,
commonCapabilities: {
'bstack:options': {
projectName: "Your static project name goes here",
buildName: "Your static build/job name goes here"
}
},
services: [
['browserstack', {
accessibility: true,
// Optional configuration options
accessibilityOptions: {
'wcagVersion': 'wcag21a',
'includeIssueType': {
'bestPractice': false,
'needsReview': true
},
'includeTagsInTestingScope': ['Specify tags of test cases to be included'],
'excludeTagsInTestingScope': ['Specify tags of test cases to be excluded']
},
}]
],
//...
};
You can view detailed instructions here.