MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / _beforeSuite

Method _beforeSuite

lib/helper/Playwright.js:542–555  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

540 }
541
542 _beforeSuite() {
543 // Skip browser start in dry-run mode (used by check command)
544 if (store.dryRun) {
545 this.debugSection('Dry Run', 'Skipping browser start')
546 return
547 }
548
549 // Start browser if not manually started and not already running
550 // Browser should start in singleton mode (restart: false) or when restart strategy is enabled
551 if (!this.options.manualStart && !this.isRunning) {
552 this.debugSection('Session', 'Starting singleton browser session')
553 return this._startBrowser()
554 }
555 }
556
557 async _before(test) {
558 // Skip browser operations in dry-run mode (used by check command)

Callers

nothing calls this directly

Calls 1

_startBrowserMethod · 0.95

Tested by

no test coverage detected