File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ async function createPage({ files, processors= {}}) {
66
66
67
67
const entry = { type : msg . type ( ) , text : msg . text ( ) , content : await Promise . all ( msg . args ( ) . map ( e => e . jsonValue ( ) ) ) } ;
68
68
if ( isDev )
69
- console . log ( entry ) ;
69
+ console . log ( expect . getState ( ) . currentTestName , entry ) ;
70
70
output . push ( entry ) ;
71
71
} ) ;
72
72
@@ -75,15 +75,15 @@ async function createPage({ files, processors= {}}) {
75
75
// Emitted when an uncaught exception happens within the page.
76
76
77
77
const entry = { type : 'pageerror' , text : error . message , content : error } ;
78
- console . log ( entry ) ;
78
+ console . log ( expect . getState ( ) . currentTestName , entry ) ;
79
79
output . push ( entry ) ;
80
80
} ) ;
81
81
82
82
page . on ( 'error' , msg => {
83
83
84
84
// Emitted when the page crashes.
85
85
86
- console . log ( 'error' , msg ) ;
86
+ console . log ( expect . getState ( ) . currentTestName , 'error' , msg ) ;
87
87
} ) ;
88
88
89
89
//page.done = new Promise(resolve => page.exposeFunction('_done', resolve));
You can’t perform that action at this time.
0 commit comments