Deprecated. See https://github.com/entur/otp-travelsearch-qa instead.
Run browser tests with nightwatch and selenium against the Rutebanken setup of digitransit-ui
Install npm install
Run tests: npm test
When running locally, you need a local selenium running or use selenium from one of our environments.
npm run test-smoke
npm run beta
npm run beta-smoke
- Download
selenium-server-standalone-x.yz.0.jarfrom http://www.seleniumhq.org/download/ - Start it:
java -jar selenium-server-standalone-2.53.0.jar - Change
selenium_hosttolocalhostinnightwatch.json
Example with helium
Tunnel: ssh -N -L4443:10.2.67.6:4444 helium
Add a selenium-hub to localhost mapping in /etc/hosts if you dont want to change nightwatch.json for local testing.
npm install nightwatch -g
nightwatch --tag smoke
nightwatch --tag citybike
nightwatch --test tests/itinerary-search/itinerary-search.js