From 05f8d001f8cf7cc3c12becf3710a84f8eab966dc Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Thu, 13 Feb 2020 13:21:19 -0800 Subject: [PATCH] test: fix service worker test (#988) Do the following to ensure SW is active and serves requests: - in ServiceWorker, claim all clients once activated - in page, await activation promise instead of a registration --- test/assets/serviceworkers/fetchdummy/sw.html | 1 + test/assets/serviceworkers/fetchdummy/sw.js | 4 ++++ test/interception.spec.js | 3 +-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/test/assets/serviceworkers/fetchdummy/sw.html b/test/assets/serviceworkers/fetchdummy/sw.html index b25d12fa4ca65..7042b2f9e61a3 100644 --- a/test/assets/serviceworkers/fetchdummy/sw.html +++ b/test/assets/serviceworkers/fetchdummy/sw.html @@ -1,5 +1,6 @@