Platform: NodeJS 12.x
# install globally for nightwatch cli
npm install nightwatch -g
- Clone this repo
- Edit the
nightwatchjs/fixtures/user.json
- Set the correct values for
user.valid.username
anduser.valid.password
cd nightwatchjs
npm install
npm test
The test will run against the url and generate a report.
If you have trouble installing chromedriver (via npm), follow these steps for a workaround. There is a bug where npm does install the chromedriver correctly to node_modules/ directory.
- Find out Chrome's version
- Goto https://chromedriver.chromium.org/downloads and download the corresponding version to your Downloads directory and unzip it
cd nightwatchjs
mkdir -p chromedriver/bin
cp Downloads/chromedriver chromedriver/bin
You do not need to run npm install again. Just run npm test.
- Edit the
apricity-cypress/cypress/fixtures/data.json
- Set the correct values for
login.username
andlogin.userpassword
cp apricity-cypress
npm install
npm test