mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore: fix tracing test in s2 mode (#24480)
This commit is contained in:
parent
b5d49d0849
commit
1277ec9900
@ -342,12 +342,12 @@ test('should survive browser.close with auto-created traces dir', async ({ brows
|
||||
// Produce a lot of operations to make sure tracing operations are enqueued.
|
||||
for (let i = 0; i < 100; i++)
|
||||
page.evaluate('1 + 1').catch(() => {});
|
||||
await page.waitForTimeout(10).catch(() => {});
|
||||
await new Promise(f => setTimeout(f, 250));
|
||||
}
|
||||
}
|
||||
|
||||
void go();
|
||||
await new Promise(f => setTimeout(f, 500));
|
||||
await new Promise(f => setTimeout(f, 1000));
|
||||
|
||||
// Close the browser and give it some time to fail.
|
||||
await Promise.all([
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user