Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 893 Bytes

README.md

File metadata and controls

50 lines (33 loc) · 893 Bytes

pgkb-nightwatch

This has been forked from learn-nightwatch.

If you need help writing these tests, go read the Nightwatch docs.

Setup

$> 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]

Running

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