Skip to content

Commit

Permalink
test: Fix should fire for fetches test (#4139)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kblok authored and aslushnikov committed Mar 8, 2019
1 parent 87a8d74 commit 5d6535c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/network.spec.js
Expand Up @@ -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);
});
});
Expand Down

0 comments on commit 5d6535c

Please sign in to comment.