mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-28 13:39:44 +07:00
* Add examples for testing service worker termination * Add example of failing case to tutorial
Testing service worker termination
Overview
Note: The test extension is intentionally broken as part of a tutorial in our documentation. See Test service worker termination with Puppeteer.
Sample code to show how to terminate a service worker in Puppeteer or Selenium.
Running the tests
- Install Node.JS.
- Change to the
puppeteerorseleniumdirectory. - Run
npm install. - Run
npm start.