Skip to content

nightwatchjs-community/nightwatch-example-nw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nightwatch + NW example

Usage

Testing final app

  1. Install the dependencies
    npm i
  2. Build the app for production
    npm run prod
  3. If not on MacOS, modify the binary config in nightwatch.conf.js (for 'chrome' env) and set it to the path of final executable file built in dist/ folder.
  4. Run Nightwatch test
    npx nightwatch --env chrome

Testing app during development

  1. Install the dependencies
    npm i
  2. Download SDK for your system from https://nwjs.io/downloads/
  3. Extract the downloaded zip file inside the root of this project.
  4. Open the extracted folder and copy the path of the chromedriver binary.
  5. Set the copied path to the server_path config in nightwatch.conf.js (for 'chrome-dev' env).
  6. Run Nightwatch test
    npx nightwatch --env chrome-dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published