🎉 Introducing BrowserStack Website Scanner — a no-code tool to instantly scan, find, and fix critical website issues. Scan your site for free!

How can we help?

Connect & Get help from fellow developers on our Discord community.

Can I select specific tests for Accessibility testing within my build?

To select specific tests within your build for Accessibility testing, you can use includeTagsInTestingScope and excludeTagsInTestingScope under the accessibilityOptions key in the browserstack.yml file.

First, you need to add tags to your test cases.

Then, you can add the tags under includeTagsInTestingScope to select these test cases for Accessibility testing. Alternatively, you can exclude test cases by using tags under excludeTagsInTestingScope.

A sample configuration is as follows:

accessibilityOptions:
  includeTagsInTestingScope: ['critical', 'p0'] # Tags for test cases to include
  excludeTagsInTestingScope: ['old', 'deprecated'] # Tags for test cases to exclude

For more information, refer to these instructions.

Other Resources

Still can’t find what you are looking for?

We are always happy to help with any questions

Support resources Contact Us