Skip to content

marcysutton/react-axe-webdriverjs-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React axe-webdriverjs demo

Test a React project for accessibility with aXe and Selenium Webdriver, bundled together with axe-webdriverjs. This combination ensures you can run all of the necessary accessibility tests including color contrast, which is not supported by JSDOM.

This project was bootstrapped with Create React App.

Setup

npm install

Run tests

The webdriver tests can be found in e2e-test/test.js. It uses the Mocha framework but you could easily replace that with something else.

In the project directory, start the web server:

npm start

In a separate tab, run the tests:

npm run webdriver

The project comes packaged with 0 accessibility violations. You would likely want to write a test for each page and state in your app, including things like opening menus or modal dialogs.

About

A demonstration of using axe-webdriverjs with a React application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors