Juraj-Masiar / puppeteer-test-browser-ext

A full example of using Puppeteer to test a chrome extension

Home Page:https://tweak-extension.com/blog/complete-guide-test-chrome-extension-puppeteer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Complete Guide to Test Chrome Extensions with Puppeteer πŸ’»

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.

Instructions πŸ”Ž

  1. npm install to install the dependencies.
  2. npm start to run the react app, must be running since it is the base for the e2e tests.
  3. npm run e2e to run the e2e tests.

Other Interesting Blogposts πŸ“š

About

A full example of using Puppeteer to test a chrome extension

https://tweak-extension.com/blog/complete-guide-test-chrome-extension-puppeteer

License:Apache License 2.0


Languages

Language:JavaScript 97.8%Language:HTML 1.4%Language:CSS 0.8%