diff --git a/test/assets/serviceworkers/fetch/sw.html b/test/assets/serviceworkers/fetch/sw.html index f1dda345c3e..ee930cf443f 100644 --- a/test/assets/serviceworkers/fetch/sw.html +++ b/test/assets/serviceworkers/fetch/sw.html @@ -1,4 +1,4 @@ diff --git a/test/test.js b/test/test.js index 986c2f018b5..edc6ce1eb7f 100644 --- a/test/test.js +++ b/test/test.js @@ -2862,6 +2862,7 @@ describe('Page', function() { // Load and re-load to make sure serviceworker is installed and running. await page.goto(server.PREFIX + '/serviceworkers/fetch/sw.html', {waitUntil: 'networkidle2'}); + await page.evaluate(async() => await window.registrationPromise); await page.reload(); expect(responses.size).toBe(2);