mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
ci: fix flaky test (#10335)
This commit is contained in:
@@ -819,7 +819,9 @@ describe('network', function () {
|
||||
});
|
||||
|
||||
const [response] = await Promise.all([
|
||||
waitEvent<HTTPResponse>(page, 'response'),
|
||||
waitEvent<HTTPResponse>(page, 'response', res => {
|
||||
return !isFavicon(res);
|
||||
}),
|
||||
page.evaluate(() => {
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.open('GET', '/foo');
|
||||
|
||||
Reference in New Issue
Block a user