This is a complete example on how to test a chrome extension with Puppeteer. This repo is referenced in our blog. In this repo you can find:
- A simple chrome extension under
replacer-chrome-extension
. - A simple React app under
src
. - Puppeteer e2e tests under
e2e
.
npm install
to install the dependencies.npm start
to run the react app, must be running since it is the base for the e2e tests.npm run e2e
to run the e2e tests.