chore: roll playwright to Jun 10th, v1.53 (#542)

Co-authored-by: Simon Knott <simonknott@microsoft.com>
This commit is contained in:
Dmitry Gozman
2025-06-11 15:53:14 +01:00
committed by GitHub
parent 4ea7041ba9
commit 0df6d7a441
3 changed files with 16 additions and 21 deletions

View File

@@ -83,11 +83,10 @@ export class Tab {
|| e.message.includes('Download is starting'); // firefox + webkit
if (!mightBeDownload)
throw e;
// on chromium, the download event is fired *after* page.goto rejects, so we wait a lil bit
const download = await Promise.race([
downloadEvent,
new Promise(resolve => setTimeout(resolve, 500)),
new Promise(resolve => setTimeout(resolve, 1000)),
]);
if (!download)
throw e;