@@ -45,6 +45,11 @@ describe('lib/testplane', () => {
4545 rootUrl : 'browser/root/url' ,
4646 getAbsoluteUrl : _ . noop
4747 } ) ,
48+ browsers : {
49+ bro1 : {
50+ timeTravel : 'off'
51+ }
52+ } ,
4853 getBrowserIds : ( ) => [ 'bro1' ]
4954 } , events , { ImageDiffError, NoRefImageError} ) ;
5055 }
@@ -203,15 +208,15 @@ describe('lib/testplane', () => {
203208
204209 it ( 'should add skipped test to result' , async ( ) => {
205210 await initReporter_ ( ) ;
206- testplane . emit ( events . TEST_PENDING , mkStubResult_ ( { title : 'some-title' } ) ) ;
211+ testplane . emit ( events . TEST_PENDING , mkStubResult_ ( { title : 'some-title' , browserId : 'bro1' } ) ) ;
207212 await testplane . emitAsync ( testplane . events . RUNNER_END ) ;
208213
209214 assert . deepEqual ( StaticReportBuilder . prototype . addTestResult . args [ 0 ] [ 0 ] . state , { name : 'some-title' } ) ;
210215 } ) ;
211216
212217 it ( 'should add passed test to result' , async ( ) => {
213218 await initReporter_ ( ) ;
214- testplane . emit ( events . TEST_PASS , mkStubResult_ ( { title : 'some-title' } ) ) ;
219+ testplane . emit ( events . TEST_PASS , mkStubResult_ ( { title : 'some-title' , browserId : 'bro1' } ) ) ;
215220 await testplane . emitAsync ( testplane . events . RUNNER_END ) ;
216221
217222 assert . deepEqual ( StaticReportBuilder . prototype . addTestResult . args [ 0 ] [ 0 ] . state , { name : 'some-title' } ) ;
@@ -220,7 +225,7 @@ describe('lib/testplane', () => {
220225 [ 'TEST_FAIL' , 'RETRY' ] . forEach ( ( event ) => {
221226 describe ( 'should add' , ( ) => {
222227 it ( `errored test to result on ${ event } event` , async ( ) => {
223- const testResult = mkStubResult_ ( { title : 'some-title' , stateName : 'state-name' } ) ;
228+ const testResult = mkStubResult_ ( { title : 'some-title' , browserId : 'bro1' , stateName : 'state-name' } ) ;
224229 await initReporter_ ( ) ;
225230
226231 testplane . emit ( events [ event ] , testResult ) ;
@@ -234,7 +239,7 @@ describe('lib/testplane', () => {
234239 const err = new Error ( ) ;
235240 err . stateName = 'state-name' ;
236241
237- testplane . emit ( events [ event ] , mkStubResult_ ( { title : 'some-title' , assertViewResults : [ err ] } ) ) ;
242+ testplane . emit ( events [ event ] , mkStubResult_ ( { title : 'some-title' , browserId : 'bro1' , assertViewResults : [ err ] } ) ) ;
238243 await testplane . emitAsync ( testplane . events . RUNNER_END ) ;
239244
240245 assert . deepEqual ( StaticReportBuilder . prototype . addTestResult . args [ 0 ] [ 0 ] . state , { name : 'some-title' } ) ;
@@ -247,6 +252,7 @@ describe('lib/testplane', () => {
247252 err . stateName = 'state-name' ;
248253 const testResult = mkStubResult_ ( {
249254 title : 'some-title' ,
255+ browserId : 'bro1' ,
250256 assertViewResults : [ err ]
251257 } ) ;
252258
@@ -262,7 +268,7 @@ describe('lib/testplane', () => {
262268 const err = new ImageDiffError ( ) ;
263269 err . stateName = 'state-name' ;
264270
265- testplane . emit ( events [ event ] , mkStubResult_ ( { title : 'some-title' , assertViewResults : [ err ] } ) ) ;
271+ testplane . emit ( events [ event ] , mkStubResult_ ( { title : 'some-title' , browserId : 'bro1' , assertViewResults : [ err ] } ) ) ;
266272 await testplane . emitAsync ( testplane . events . RUNNER_END ) ;
267273
268274 assert . deepEqual ( StaticReportBuilder . prototype . addTestResult . args [ 0 ] [ 0 ] . state , { name : 'some-title' } ) ;
0 commit comments