(test)
| 352 | } |
| 353 | |
| 354 | async _before(test) { |
| 355 | this.sessionPages = {} |
| 356 | this.currentRunningTest = test |
| 357 | recorder.retry({ |
| 358 | retries: test?.opts?.conditionalRetries || 3, |
| 359 | when: err => { |
| 360 | if (!err || typeof err.message !== 'string') { |
| 361 | return false |
| 362 | } |
| 363 | // ignore context errors |
| 364 | return err.message.includes('context') |
| 365 | }, |
| 366 | }) |
| 367 | if (this.options.restart && !this.options.manualStart) return this._startBrowser() |
| 368 | if (!this.isRunning && !this.options.manualStart) return this._startBrowser() |
| 369 | return this.browser |
| 370 | } |
| 371 | |
| 372 | async _after() { |
| 373 | if (!this.isRunning) return |
nothing calls this directly
no test coverage detected