mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 21:53:35 +03:00
test: fix fixture teardown (#10174)
This commit is contained in:
parent
06c587b696
commit
cce359ea83
@ -104,8 +104,8 @@ const test = playwrightTest.extend<{ showTraceViewer: (trace: string) => Promise
|
||||
browser = await playwright.chromium.connectOverCDP({ endpointURL: contextImpl._browser.options.wsEndpoint });
|
||||
return new TraceViewerPage(browser.contexts()[0].pages()[0]);
|
||||
});
|
||||
await browser.close();
|
||||
await contextImpl._browser.close();
|
||||
await browser?.close();
|
||||
await contextImpl?._browser.close();
|
||||
},
|
||||
|
||||
runAndTrace: async ({ context, showTraceViewer }, use, testInfo) => {
|
||||
|
Loading…
Reference in New Issue
Block a user