Run your Puppeteer test suite as a Firebase Function.
The following is included an easy to extend base and an example test.
- Node 8
- Firebase project
src/constant
- Add all of your constant and conf and css-selectors.src/utils
- Add all methods that your planning to reuse (example:login method).
Run index.js with the env param NODE_ENV=DEV
to run the server locally.
I've included an example test called ducksearch with a pretty basic functionality: https://europe-west1-puppeteerfirebasesuite.cloudfunctions.net/puppeteer/v1/ducksearch?query=hummus&result=3