diff --git a/packages/config/src/options.ts b/packages/config/src/options.ts index 1e65476b3b65..e57db0247b0e 100644 --- a/packages/config/src/options.ts +++ b/packages/config/src/options.ts @@ -184,7 +184,6 @@ const driverConfigOptions: Array = [ defaultValue: 'cypress/downloads', validation: validate.isString, isFolder: true, - requireRestartOnChange: 'browser', }, { name: 'e2e', // e2e runner overrides diff --git a/packages/data-context/src/DataContext.ts b/packages/data-context/src/DataContext.ts index 66290e3c2d17..bdb2bee08620 100644 --- a/packages/data-context/src/DataContext.ts +++ b/packages/data-context/src/DataContext.ts @@ -427,7 +427,10 @@ export class DataContext { } updateCliBrowser (browser: string) { - (this._modeOptions as Partial).browser = browser - this.coreData.cliBrowser = browser + // in open mode, prevent cliBrowser from being changed after browser is opened + if (this.isRunMode || !this.coreData.cliBrowser) { + (this._modeOptions as Partial).browser = browser + this.coreData.cliBrowser = browser + } } }