Back to Chrome Extensions Samples

Testing service worker termination

functional-samples/tutorial.terminate-sw/README.md

latest548 B
Original Source

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

  1. Install Node.JS.
  2. Change to the puppeteer or selenium directory.
  3. Run npm install.
  4. Run npm start.