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

https://github.com/willi-dev/puppeteer-screenshot-test

script test for take screen shot at different viewport
https://github.com/willi-dev/puppeteer-screenshot-test

Last synced: about 2 months ago
JSON representation

script test for take screen shot at different viewport

Awesome Lists containing this project

README

          

# testing screenshot using puppeteer

## setup
``` bash
# cloning project
$ git clone git@github.com:willi-dev/puppeteer-screenshot-test.git

# npm install
$ npm install
```

## setup your base url and endpoint url
open test.js
```
...
const appTest = {
baseURL: 'your url',
listPages: [
{
name: 'your page name for file name',
url: 'example endpoint' // example: '/contact'
}
]
}
...
```
## take screenshot

``` bash
# run your screenshot test
$ node test.js
```