File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -129,16 +129,21 @@ function launchBrowser(browser, url) {
129
129
if ( ! error && screenshot . url ) {
130
130
console . log ( '[%s] Screenshot: %s' , worker . string , screenshot . url ) ;
131
131
}
132
+ utils . alertBrowserStack ( subject , content ) ;
132
133
} ) ;
133
- utils . alertBrowserStack ( subject , content ) ;
134
134
}
135
135
} , timeout * 1000 ) ;
136
136
137
137
setTimeout ( function ( ) {
138
138
if ( workers [ key ] ) {
139
139
var subject = "Tests timed out on: " + worker . string ;
140
140
var content = "Worker details:\n" + JSON . stringify ( worker . config , null , 4 ) ;
141
- utils . alertBrowserStack ( subject , content ) ;
141
+ client . takeScreenshot ( worker . id , function ( error , screenshot ) {
142
+ if ( ! error && screenshot . url ) {
143
+ console . log ( '[%s] Screenshot: %s' , worker . string , screenshot . url ) ;
144
+ }
145
+ utils . alertBrowserStack ( subject , content ) ;
146
+ } ) ;
142
147
}
143
148
} , ( timeout * 1000 ) ) ;
144
149
}
You can’t perform that action at this time.
0 commit comments