mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-26 13:19:49 +07:00
Updates the Puppeteer tutorial to use the `action.openPopup()` method to open the popup, and then `asPage()` to access the popup as a page target. A basic service worker has been added to the history sample to give us a context to call `action.openPopup()` in.
Tutorial: Testing Chrome Extensions with Puppeteer
Overview
This is the sample code for the Testing Chrome Extensions with Puppeteer tutorial.
Running the tests
- Install Node.JS.
- Run
npm install. - Run
npm start.