Minimal example of loading a web page into puppeteer and testing with mocha
$ git clone https://github.com/dna-engine/load-web-page-puppeteer-mocha
$ cd load-web-page-puppeteer-mocha
$ npm install
$ npm test #runs "mocha spec.js"
For development testing, set the pageUrl
variable in spec.js to your local web server, such as:
http://localhost:8080