Skip to content

Commit

Permalink
chore: fix a flaky test in request interception (#8870)
Browse files Browse the repository at this point in the history
  • Loading branch information
OrKoN committed Aug 31, 2022
1 parent 6e9a47a commit 61624d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/src/requestinterception.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
});

Expand Down

0 comments on commit 61624d2

Please sign in to comment.