Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dna-engine/load-web-page-puppeteer-mocha
- Owner: dna-engine
- License: mit
- Created: 2020-11-29T07:04:37.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-07T09:55:22.000Z (6 months ago)
- Last Synced: 2024-05-07T10:54:45.207Z (6 months ago)
- Topics: javascript, localhost, mocha, nodejs, puppeteer, testing, url
- Language: JavaScript
- Homepage: https://dna-engine.org
- Size: 335 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# load-web-page-puppeteer-mocha
_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"
```## 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)