Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dna-engine/load-web-page-puppeteer-mocha

Minimal example of loading a web page into puppeteer and testing with mocha
https://github.com/dna-engine/load-web-page-puppeteer-mocha

javascript localhost mocha nodejs puppeteer testing url

Last synced: 3 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# load-web-page-puppeteer-mocha
logo

_Minimal example of loading a web page into puppeteer and testing with mocha_

[![Build](https://github.com/dna-engine/load-web-page-puppeteer-mocha/actions/workflows/run-spec-on-push.yaml/badge.svg)](https://github.com/dna-engine/load-web-page-puppeteer-mocha/actions/workflows/run-spec-on-push.yaml)

## Instructions
```shell
$ 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](https://dna-engine.org) | [MIT License](LICENSE.txt)