diff --git a/test/network.spec.js b/test/network.spec.js index 180e6fa6..4dc6ca30 100644 --- a/test/network.spec.js +++ b/test/network.spec.js @@ -41,7 +41,7 @@ module.exports.addTests = function({testRunner, expect, CHROME}) { const requests = []; page.on('request', request => !utils.isFavicon(request) && requests.push(request)); await page.goto(server.EMPTY_PAGE); - await utils.attachFrame(page, 'frame1', server.EMPTY_PAGE); + await page.evaluate(() => fetch('/empty.html')); expect(requests.length).toBe(2); }); });