File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -748,15 +748,15 @@ exports.isTestObservabilitySupportedCypressVersion = (cypress_config_filename) =
748
748
exports . setTestObservabilityFlags = ( bsConfig ) => {
749
749
/* testObservability */
750
750
let isTestObservabilitySession = true ;
751
- if ( ! utils . isUndefined ( bsConfig [ "testObservability" ] ) ) isTestObservabilitySession = ( bsConfig [ "testObservability" ] == true ) ;
752
- if ( ! utils . isUndefined ( process . env . BROWSERSTACK_TEST_OBSERVABILITY ) ) isTestObservabilitySession = ( process . env . BROWSERSTACK_TEST_OBSERVABILITY == "true" ) ;
751
+ if ( ! utils . isUndefined ( bsConfig [ "testObservability" ] ) ) isTestObservabilitySession = ( bsConfig [ "testObservability" ] == true || bsConfig [ "testObservability" ] == 1 ) ;
752
+ if ( ! utils . isUndefined ( process . env . BROWSERSTACK_TEST_OBSERVABILITY ) ) isTestObservabilitySession = ( process . env . BROWSERSTACK_TEST_OBSERVABILITY == "true" || process . env . BROWSERSTACK_TEST_OBSERVABILITY == "1" ) ;
753
753
if ( process . argv . includes ( '--disable-test-observability' ) ) isTestObservabilitySession = false ;
754
754
isTestObservabilitySession = isTestObservabilitySession && this . isTestObservabilitySupportedCypressVersion ( bsConfig . run_settings . cypress_config_file ) ;
755
755
756
756
/* browserstackAutomation */
757
757
let isBrowserstackInfra = true ;
758
- if ( ! utils . isUndefined ( bsConfig [ "browserstackAutomation" ] ) ) isBrowserstackInfra = ( bsConfig [ "browserstackAutomation" ] == true ) ;
759
- if ( ! utils . isUndefined ( process . env . BROWSERSTACK_AUTOMATION ) ) isBrowserstackInfra = ( process . env . BROWSERSTACK_AUTOMATION == "true" ) ;
758
+ if ( ! utils . isUndefined ( bsConfig [ "browserstackAutomation" ] ) ) isBrowserstackInfra = ( bsConfig [ "browserstackAutomation" ] == true || bsConfig [ "browserstackAutomation" ] == 1 ) ;
759
+ if ( ! utils . isUndefined ( process . env . BROWSERSTACK_AUTOMATION ) ) isBrowserstackInfra = ( process . env . BROWSERSTACK_AUTOMATION == "true" || process . env . BROWSERSTACK_AUTOMATION == "1" ) ;
760
760
if ( process . argv . includes ( '--disable-browserstack-automation' ) ) isBrowserstackInfra = false ;
761
761
762
762
process . env . BROWSERSTACK_TEST_OBSERVABILITY = isTestObservabilitySession ;
Original file line number Diff line number Diff line change @@ -234,9 +234,13 @@ class MyReporter {
234
234
test_run_uuid : step . test_run_uuid ,
235
235
hook_run_uuid : step . hook_run_uuid ,
236
236
timestamp : step . started_at ,
237
+ duration : step . duration ,
237
238
level : step . result ,
238
239
message : step . text ,
239
- kind : 'TEST_LOG' ,
240
+ failure : step . failure ,
241
+ failure_reason : step . failure_reason ,
242
+ failure_type : step . failure_type ,
243
+ kind : 'TEST_STEP' ,
240
244
http_response : { }
241
245
} ;
242
246
allStepsAsLogs . push ( currentStepAsLog ) ;
You can’t perform that action at this time.
0 commit comments