Skip to content

Commit

Permalink
Merge branch 'master' into HST_722_ats
Browse files Browse the repository at this point in the history
  • Loading branch information
KrishnaSuravarapu committed Dec 13, 2023
2 parents c3aed35 + 5d419bc commit a17f89c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/helpers/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,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

0 comments on commit a17f89c

Please sign in to comment.