From 5d6535ca0c82efe2ca50450818d5fb20aa015658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dar=C3=ADo=20Kondratiuk?= Date: Fri, 8 Mar 2019 13:59:07 -0300 Subject: [PATCH] test: Fix should fire for fetches test (#4139) The code in "should fire for fetches" was copy of "should fire for iframes" I bet the test was supposed to use a fetch there. --- test/network.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }); });