Skip to content
forked from salesforce/sa11y

Salesforce Automated Accessibility Testing Libraries

License

BSD-3-Clause, Unknown licenses found

Licenses found

BSD-3-Clause
LICENSE.txt
Unknown
license-header.txt
Notifications You must be signed in to change notification settings

mohanraj-r/sa11y

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Salesforce Accessibility Automation Libraries

Salesforce Automated Accessibility Testing Libraries and Tools (@sa11y packages) based on axe-core

Build

Docs

Packages

This repo contains packages for automated accessibility testing 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.

Embroidery that says "Don't talk to me until I've had coffee and you've run axe" in a hoop

(Image courtesy: @shleewhite, @jorycunningham)

  • Provides a toBeAccessible() accessibility matcher for Jest
  • If you are looking to add accessibility testing to your Jest tests use this package

Screenshot showing Jest usage and errors showing up in VSCode

  • Provides assertAccessible(), assertAccessibleSync() APIs that can be used with WebdriverIO to check accessibility of web pages rendered in browsers
  • Checks DOM or HTML Element for accessibility issues and throws an error if a11y issues are found
  • If you are looking to add accessibility testing to your Javascript unit tests and not using Jest, use this package
  • Formats raw JSON output of a11y issues from axe into an easy to consume format by consolidating and cross-referencing
  • Used by assert Accessible API and Jest a11y matcher
  • If you are using axe directly and want to format the results from axe.run use this package
  • Provides Base, Recommended, Full accessibility preset rules as axe configuration
  • The Recommended preset rule is used by default in the Jest a11y matcher and assert Accessible APIs
    • The APIs can be overridden to use the Base or Full ruleset as necessary

Internal packages

  • Private package providing test utilities for @sa11y packages
  • Private package providing integration tests for @sa11y packages
  • Common utilities, constants, error messages for @sa11y packages

About

Salesforce Automated Accessibility Testing Libraries

Resources

License

BSD-3-Clause, Unknown licenses found

Licenses found

BSD-3-Clause
LICENSE.txt
Unknown
license-header.txt

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 69.5%
  • JavaScript 29.4%
  • HTML 1.1%