This has been forked from learn-nightwatch.
If you need help writing these tests, go read the Nightwatch docs.
$> npm i
In the .env
file set the path you would like screenshots saved to
SCREENSHOT_PATH=screenshots
You should also set the following for your email and password if you plan to test on beta or on a local instance
PGKB_USER=[your email]
PGKB_PASS=[your password]
To run all tests on beta by default:
$> npm test
To run a single test (gene_test, for example):
$> npm run test -- ./test/pharmgkb/chemical.js
To run all tests against www:
$> npm run test-www
To run a single test against local (gene_test):
$> npm run test-www -- ./test/pharmgkb/chemical.js