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
fix(browser): close the pages of a project that has no tests left
Browser pages were only closed by the provider's `close()`, which runs once the
whole workspace run is over. Projects run concurrently and each opens up to
`maxWorkers` pages, so a run held `projects * maxWorkers` pages at its peak and
the projects that finished early kept their page alive until the slowest one
was done.
Add an optional `closePage` to `BrowserProvider`, implement it for Playwright,
and call it from the pool once a session has no test files left. The results of
the last test can still be on their way when that happens, so the session waits
for them to be handled before its page goes away.
In watch mode the pages are kept so that reruns still reuse the session.
0 commit comments