- Install the dependencies
npm i
- Build the app for production
npm run prod
- If not on MacOS, modify the
binary
config innightwatch.conf.js
(for 'chrome' env) and set it to the path of final executable file built indist/
folder. - Run Nightwatch test
npx nightwatch --env chrome
- Install the dependencies
npm i
- Download SDK for your system from https://nwjs.io/downloads/
- Extract the downloaded zip file inside the root of this project.
- Open the extracted folder and copy the path of the
chromedriver
binary. - Set the copied path to the
server_path
config innightwatch.conf.js
(for 'chrome-dev' env). - Run Nightwatch test
npx nightwatch --env chrome-dev