Skip to content

Commit

Permalink
don't need setActiveBrowserByNameOrPath for run mode
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsch01 authored Nov 1, 2024
1 parent 44e0c99 commit 24e3dda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/data-context/src/data/ProjectLifecycleManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,14 +316,14 @@ export class ProjectLifecycleManager {
const configBrowser = this.loadedFullConfig?.defaultBrowser

if (configBrowser && !this.ctx.coreData.isBrowserGivenByCli) {
await this.setActiveBrowserByNameOrPath(configBrowser)

if (this.ctx.isRunMode) {
this.ctx.setModeOptionsBrowser(configBrowser)

return
}

await this.setActiveBrowserByNameOrPath(configBrowser)

if (this.ctx.coreData.activeBrowser) {
await this.ctx.actions.project.launchProject(this.ctx.coreData.currentTestingType)
}
Expand Down

0 comments on commit 24e3dda

Please sign in to comment.