test: service worker main request/response should be marked correctly (#15482)
This commit is contained in:
parent
26805d7617
commit
a5571c9981
|
|
@ -101,6 +101,8 @@ test('should intercept service worker requests (main and within)', async ({ cont
|
|||
|
||||
const [ sw ] = await Promise.all([
|
||||
context.waitForEvent('serviceworker'),
|
||||
context.waitForEvent('request', r => r.url().endsWith('sw.js') && !!r.serviceWorker()),
|
||||
context.waitForEvent('response', r => r.url().endsWith('sw.js') && !r.fromServiceWorker()),
|
||||
page.goto(server.PREFIX + '/serviceworkers/empty/sw.html'),
|
||||
]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue