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.
This commit is contained in:
Darío Kondratiuk 2019-03-08 13:59:07 -03:00 committed by Andrey Lushnikov
parent 87a8d744e6
commit 5d6535ca0c

View File

@ -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);
});
});