IKivan-kozenko -aqa
Try yourself as a QA tester
Back to topic

Quiz

Service Workers

Check yourself

  1. 1.When should you reach for service worker testing APIs instead of page.route()?
  2. 2.How do you disable service workers for all tests in a project?
  3. 3.Which event on the browser context fires when a page registers a service worker?
  4. 4.After navigating to a page with a service worker, how do you wait until the worker actually controls the page before running assertions?
  5. 5.Where are service-worker network requests reported in Playwright — on the page or on the browserContext?
  6. 6.What happens when you call request.frame() on a request that was made by a service worker?
  7. 7.How do you route only service-worker-originated requests while letting regular page requests pass through?
  8. 8.What is the correct way to set up the serviceworker event listener to avoid a race condition where the worker registers before the listener is attached?