@@ -1217,6 +1217,7 @@ exports.getNetworkErrorMessage = (dashboard_url) => {
12171217}
12181218
12191219exports . setNetworkLogs = ( bsConfig ) => {
1220+ let capture_content = null
12201221 if (
12211222 ( bsConfig . run_settings . networkLogs == 'true' || bsConfig . run_settings . networkLogs == true )
12221223 || ( bsConfig . run_settings . network_logs == 'true' || bsConfig . run_settings . network_logs == true )
@@ -1227,14 +1228,34 @@ exports.setNetworkLogs = (bsConfig) => {
12271228 this . isNotUndefined ( bsConfig . run_settings . networkLogsOptions )
12281229 && typeof ( bsConfig . run_settings . networkLogsOptions ) === "object"
12291230 ) {
1230- bsConfig . run_settings . networkLogsOptions = { capture_content : ( bsConfig . run_settings . networkLogsOptions . captureContent || bsConfig . run_settings . networkLogsOptions . capture_content ) }
1231- bsConfig . run_settings . network_logs_options = { capture_content : ( bsConfig . run_settings . networkLogsOptions . captureContent || bsConfig . run_settings . networkLogsOptions . capture_content ) }
1231+ if (
1232+ bsConfig . run_settings . networkLogsOptions . captureContent == 'true'
1233+ || bsConfig . run_settings . networkLogsOptions . captureContent == true
1234+ || bsConfig . run_settings . networkLogsOptions . capture_content == 'true'
1235+ || bsConfig . run_settings . networkLogsOptions . capture_content == true
1236+ ) {
1237+ capture_content = 'true'
1238+ } else {
1239+ capture_content = 'false'
1240+ }
1241+ bsConfig . run_settings . networkLogsOptions = { capture_content : capture_content }
1242+ bsConfig . run_settings . network_logs_options = { capture_content : capture_content }
12321243 } else {
12331244 if (
12341245 this . isNotUndefined ( bsConfig . run_settings . network_logs_options )
12351246 && typeof ( bsConfig . run_settings . network_logs_options ) === "object" ) {
1236- bsConfig . run_settings . networkLogsOptions = { capture_content : ( bsConfig . run_settings . network_logs_options . captureContent || bsConfig . run_settings . network_logs_options . capture_content ) }
1237- bsConfig . run_settings . network_logs_options = { capture_content : ( bsConfig . run_settings . network_logs_options . captureContent || bsConfig . run_settings . network_logs_options . capture_content ) }
1247+ if (
1248+ bsConfig . run_settings . network_logs_options . captureContent == 'true'
1249+ || bsConfig . run_settings . network_logs_options . captureContent == true
1250+ || bsConfig . run_settings . network_logs_options . capture_content == 'true'
1251+ || bsConfig . run_settings . network_logs_options . capture_content == true
1252+ ) {
1253+ capture_content = 'true'
1254+ } else {
1255+ capture_content = 'false'
1256+ }
1257+ bsConfig . run_settings . networkLogsOptions = { capture_content : capture_content }
1258+ bsConfig . run_settings . network_logs_options = { capture_content : capture_content }
12381259 } else {
12391260 bsConfig . run_settings . networkLogsOptions = null
12401261 bsConfig . run_settings . network_logs_options = null
0 commit comments