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

Method _getOptionsForBrowser

lib/helper/Playwright.js:413–424  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

411 }
412
413 _getOptionsForBrowser(config) {
414 if (config[config.browser]) {
415 if (config[config.browser].browserWSEndpoint && config[config.browser].browserWSEndpoint.wsEndpoint) {
416 config[config.browser].browserWSEndpoint = config[config.browser].browserWSEndpoint.wsEndpoint
417 }
418 return {
419 ...config[config.browser],
420 wsEndpoint: config[config.browser].browserWSEndpoint,
421 }
422 }
423 return {}
424 }
425
426 _setConfig(config) {
427 this.options = this._validateConfig(config)

Callers 1

_setConfigMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected