@@ -1217,6 +1217,7 @@ exports.getNetworkErrorMessage = (dashboard_url) => {
1217
1217
}
1218
1218
1219
1219
exports . setNetworkLogs = ( bsConfig ) => {
1220
+ let capture_content = null
1220
1221
if (
1221
1222
( bsConfig . run_settings . networkLogs == 'true' || bsConfig . run_settings . networkLogs == true )
1222
1223
|| ( bsConfig . run_settings . network_logs == 'true' || bsConfig . run_settings . network_logs == true )
@@ -1227,14 +1228,34 @@ exports.setNetworkLogs = (bsConfig) => {
1227
1228
this . isNotUndefined ( bsConfig . run_settings . networkLogsOptions )
1228
1229
&& typeof ( bsConfig . run_settings . networkLogsOptions ) === "object"
1229
1230
) {
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 }
1232
1243
} else {
1233
1244
if (
1234
1245
this . isNotUndefined ( bsConfig . run_settings . network_logs_options )
1235
1246
&& 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 }
1238
1259
} else {
1239
1260
bsConfig . run_settings . networkLogsOptions = null
1240
1261
bsConfig . run_settings . network_logs_options = null
0 commit comments