test: filter out favicon requests (#12345)

This commit is contained in:
Alex Rudenko 2024-04-26 10:04:54 +02:00 committed by GitHub
parent 7b5e286146
commit ad0076093d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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