mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
test: filter out favicon requests (#12345)
This commit is contained in:
parent
7b5e286146
commit
ad0076093d
@ -488,7 +488,7 @@ describe('network', function () {
|
||||
|
||||
const requests: HTTPRequest[] = [];
|
||||
page.on('request', request => {
|
||||
return requests.push(request);
|
||||
return !isFavicon(request) && requests.push(request);
|
||||
});
|
||||
await page.goto(server.EMPTY_PAGE);
|
||||
expect(requests).toHaveLength(1);
|
||||
|
Loading…
Reference in New Issue
Block a user