mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: fix a flaky test in request interception (#8870)
This commit is contained in:
parent
6e9a47a6fa
commit
61624d2695
@ -615,10 +615,11 @@ describe('request interception', function () {
|
||||
return request.continue();
|
||||
});
|
||||
|
||||
await page.goto(server.PREFIX + '/cached/one-style-font.html');
|
||||
await page.waitForResponse(r => {
|
||||
const responsePromise = page.waitForResponse(r => {
|
||||
return r.url().endsWith('/one-style.woff');
|
||||
});
|
||||
await page.goto(server.PREFIX + '/cached/one-style-font.html');
|
||||
await responsePromise;
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user