()
| 430 | } |
| 431 | |
| 432 | async function closeBrowser() { |
| 433 | if (!containerInitialized) return |
| 434 | await cancelRun() |
| 435 | await endShellSession() |
| 436 | for (const helper of Object.values(container.helpers() || {})) { |
| 437 | try { if (helper._cleanup) await helper._cleanup() } catch {} |
| 438 | try { if (helper._finishTest) await helper._finishTest() } catch {} |
| 439 | } |
| 440 | browserStarted = false |
| 441 | } |
| 442 | |
| 443 | async function captureLiveArtifacts(prefix = 'pause') { |
| 444 | const helper = pickActingHelper(container.helpers()) |
no test coverage detected