mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
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:
parent
87a8d744e6
commit
5d6535ca0c
@ -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);
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user