mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
docs(test-advanced): add missing browser.close() (#19884)
https://github.com/microsoft/playwright/issues/19822
This commit is contained in:
parent
ddccb59093
commit
ef877dadfe
@ -410,12 +410,12 @@ async function globalSetup(config: FullConfig) {
|
||||
await context.tracing.stop({
|
||||
path: './test-results/setup-trace.zip',
|
||||
})
|
||||
await page.close();
|
||||
await browser.close();
|
||||
} catch (error) {
|
||||
await context.tracing.stop({
|
||||
path: './test-results/failed-setup-trace.zip',
|
||||
});
|
||||
await page.close();
|
||||
await browser.close();
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user