You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a very simple test that does not use any fixture, but creates a browser instance in the test case.
test('Sample Test with browser.close',async()=>{constbrowser=awaitchromium.launch();constpage=awaitbrowser.newPage();awaitpage.goto("https://playwright.dev");awaitbrowser.close();});
Execute the test in UI mode (npx playwright test --ui)
Expected behavior
Test should be successful, test information (including screenshot, timeline, logs, etc.) should be visible in UI mode.
Actual behavior
As soon as browser.close is called, test information is gone.
Additional context
It works fine when using page.close instead of browser.close
Version
1.44.0
Steps to reproduce
Create a very simple test that does not use any fixture, but creates a browser instance in the test case.
Execute the test in UI mode (npx playwright test --ui)
Expected behavior
Test should be successful, test information (including screenshot, timeline, logs, etc.) should be visible in UI mode.
Actual behavior
As soon as browser.close is called, test information is gone.
Additional context
It works fine when using page.close instead of browser.close
Discord post: https://discord.com/channels/807756831384403968/1240014510593413120
Environment
The text was updated successfully, but these errors were encountered: