Skip to content

Commit a17f89c

Browse files
Merge branch 'master' into HST_722_ats
2 parents c3aed35 + 5d419bc commit a17f89c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bin/helpers/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,7 @@ exports.setEnforceSettingsConfig = (bsConfig) => {
13401340
if(specConfigs && specConfigs.includes(',')) {
13411341
specConfigs = JSON.stringify(specConfigs.split(','));
13421342
}
1343-
let spec_pattern_args = 'specPattern="'+specConfigs+'"';
1343+
let spec_pattern_args = `specPattern=${specConfigs}`;
13441344
config_args = this.isUndefined(config_args) ? spec_pattern_args : config_args + ',' + spec_pattern_args;
13451345
}
13461346
if ( this.isNotUndefined(config_args) ) bsConfig["run_settings"]["config"] = config_args;

test/unit/bin/helpers/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3107,7 +3107,7 @@ describe('utils', () => {
31073107
run_settings: { specs: 'somerandomspecs', cypressTestSuiteType: 'CYPRESS_V10_AND_ABOVE_TYPE' },
31083108
};
31093109
let args = {
3110-
config: 'video=false,videoUploadOnPasses=false,specPattern="somerandomspecs"'
3110+
config: 'video=false,videoUploadOnPasses=false,specPattern=somerandomspecs'
31113111
}
31123112
utils.setEnforceSettingsConfig(bsConfig);
31133113
expect(args.config).to.be.eql(bsConfig.run_settings.config);
@@ -3117,7 +3117,7 @@ describe('utils', () => {
31173117
run_settings: { specs: 'somerandomspecs1,somerandomspecs2', cypressTestSuiteType: 'CYPRESS_V10_AND_ABOVE_TYPE' },
31183118
};
31193119
let args = {
3120-
config: 'video=false,videoUploadOnPasses=false,specPattern="["somerandomspecs1","somerandomspecs2"]"'
3120+
config: 'video=false,videoUploadOnPasses=false,specPattern=["somerandomspecs1","somerandomspecs2"]'
31213121
}
31223122
utils.setEnforceSettingsConfig(bsConfig);
31233123
expect(args.config).to.be.eql(bsConfig.run_settings.config);

0 commit comments

Comments
 (0)