This is an example of nightwatch.js using mocha.
This demo is running against the gov-uk-prototype toolkit.
This requires a instance of the kit to be running to test against.
This package includes selenium-server, chromedriver, geckodriver and phantom.js installed via npm.
Running full nightwatch tests
nightwatch tests/*
Running an individual test
nightwatch tests/form.js
Currently it is expected to run against a site on http://localhost:3000.
You can change this with the following
SITE=http://localhost:4000 nightwatch tests/form.js
You can switch between browsers by running BROWSER=firefox or chrome or phantom.
- node 6
- Java for selenium server
- Pure mocha example
- Extended script examples with forms
- tab ordering checks against pages
- stand alone pages to test against
- add aXe/Tenon demo