Skip to content

Minimal example of loading a web page into puppeteer and testing with mocha

License

Notifications You must be signed in to change notification settings

dna-engine/load-web-page-puppeteer-mocha

Repository files navigation

load-web-page-puppeteer-mocha

logo

Minimal example of loading a web page into puppeteer and testing with mocha

Build

Instructions

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

screenshot

Dev Mode

For development testing, set the pageUrl variable in spec.js to your local web server, such as: http://localhost:8080



dna-engine.org | MIT License