Skip to content

htmlandbacon/nightwatch-mocha-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nightwatch-mocha-examples

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.

Requirements

  • node 6
  • Java for selenium server

Todo

  • Pure mocha example
  • Extended script examples with forms
  • tab ordering checks against pages
  • stand alone pages to test against
  • add aXe/Tenon demo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published