Skip to content

Commit 6b5e731

Browse files
committed
fixed validation
1 parent b45f5b1 commit 6b5e731

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

bin/commands/runs.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,6 @@ module.exports = function run(args, rawArgs) {
129129
// set the no-wrap
130130
utils.setNoWrap(bsConfig, args);
131131

132-
// set the interactive debugging capability
133-
utils.setInteractiveCapability(bsConfig);
134-
135132
// add cypress dependency if missing
136133
utils.setCypressNpmDependency(bsConfig);
137134
}
@@ -187,6 +184,9 @@ module.exports = function run(args, rawArgs) {
187184
// set record feature caps
188185
utils.setRecordCaps(bsConfig, args, cypressConfigFile);
189186

187+
// set the interactive debugging capability
188+
utils.setInteractiveCapability(bsConfig);
189+
190190
// warn if specFiles cross our limit
191191
utils.warnSpecLimit(bsConfig, args, specFiles, rawArgs, buildReportData);
192192
markBlockEnd('preArchiveSteps');

bin/helpers/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,8 +1012,8 @@ exports.setInteractiveCapability = (bsConfig) => {
10121012
let interactiveDebuggingTemp = "true";
10131013
let interactive_debugging = bsConfig.run_settings.interactive_debugging;
10141014
let interactiveDebugging = bsConfig.run_settings.interactiveDebugging;
1015-
if(!isNonBooleanValue(interactive_debugging)) interactiveDebuggingTemp = interactive_debugging;
1016-
else if(!isNonBooleanValue(interactiveDebugging)) interactiveDebuggingTemp = interactiveDebugging;
1015+
if(this.isNotUndefined(interactive_debugging) && !this.isNonBooleanValue(interactive_debugging)) interactiveDebuggingTemp = interactive_debugging;
1016+
else if(this.isNotUndefined(interactiveDebugging) && !this.isNonBooleanValue(interactiveDebugging)) interactiveDebuggingTemp = interactiveDebugging;
10171017
logger.debug(`Setting interactiveDebugging flag to ${interactiveDebuggingTemp}`);
10181018
bsConfig.run_settings.interactiveDebugging = interactiveDebuggingTemp;
10191019
}

0 commit comments

Comments
 (0)