Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/helpers/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1327,7 +1327,7 @@ exports.setEnforceSettingsConfig = (bsConfig) => {
if(specConfigs && specConfigs.includes(',')) {
specConfigs = JSON.stringify(specConfigs.split(','));
}
let spec_pattern_args = 'specPattern="'+specConfigs+'"';
let spec_pattern_args = `specPattern=${specConfigs}`;
config_args = this.isUndefined(config_args) ? spec_pattern_args : config_args + ',' + spec_pattern_args;
}
if ( this.isNotUndefined(config_args) ) bsConfig["run_settings"]["config"] = config_args;
Expand Down
4 changes: 2 additions & 2 deletions test/unit/bin/helpers/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3107,7 +3107,7 @@ describe('utils', () => {
run_settings: { specs: 'somerandomspecs', cypressTestSuiteType: 'CYPRESS_V10_AND_ABOVE_TYPE' },
};
let args = {
config: 'video=false,videoUploadOnPasses=false,specPattern="somerandomspecs"'
config: 'video=false,videoUploadOnPasses=false,specPattern=somerandomspecs'
}
utils.setEnforceSettingsConfig(bsConfig);
expect(args.config).to.be.eql(bsConfig.run_settings.config);
Expand All @@ -3117,7 +3117,7 @@ describe('utils', () => {
run_settings: { specs: 'somerandomspecs1,somerandomspecs2', cypressTestSuiteType: 'CYPRESS_V10_AND_ABOVE_TYPE' },
};
let args = {
config: 'video=false,videoUploadOnPasses=false,specPattern="["somerandomspecs1","somerandomspecs2"]"'
config: 'video=false,videoUploadOnPasses=false,specPattern=["somerandomspecs1","somerandomspecs2"]'
}
utils.setEnforceSettingsConfig(bsConfig);
expect(args.config).to.be.eql(bsConfig.run_settings.config);
Expand Down