@@ -472,9 +472,9 @@ describe('TraceManager', () => {
472
472
( spanAndAnnotation ) => spanAndAnnotation . span . performanceEntry ,
473
473
) ,
474
474
) . toMatchInlineSnapshot ( `
475
- events | start
476
- timeline | |
477
- time (ms) | 0
475
+ events | start interrupt
476
+ timeline | |-<⋯ +100 ⋯>-|
477
+ time (ms) | 0 100
478
478
` )
479
479
expect ( report . name ) . toBe ( 'ticket.interrupt-on-basic-operation' )
480
480
expect ( report . duration ) . toBeNull ( )
@@ -554,8 +554,8 @@ describe('TraceManager', () => {
554
554
name : 'ticket.interrupt-on-basic-operation' ,
555
555
type : 'operation' ,
556
556
relationSchemaName : 'ticket' ,
557
- requiredSpans : [ { name : 'end ' , isIdle : true } ] ,
558
- debounceOnSpans : [ { name : 'end ' } ] ,
557
+ requiredSpans : [ { name : 'component ' , isIdle : true } ] ,
558
+ debounceOnSpans : [ { name : 'component ' } ] ,
559
559
variants : {
560
560
cold_boot : { timeout : DEFAULT_COLDBOOT_TIMEOUT_DURATION } ,
561
561
} ,
@@ -569,7 +569,7 @@ describe('TraceManager', () => {
569
569
570
570
// prettier-ignore
571
571
const { spans } = getSpansFromTimeline < TicketIdRelationSchemasFixture > `
572
- Events: ${ Render ( 'start' , 0 ) } -----${ Render ( 'end ' , 50 , { isIdle : true } ) } -----${ Render ( 'end ' , 50 , { isIdle : false } ) }
572
+ Events: ${ Render ( 'start' , 0 ) } -----${ Render ( 'component ' , 50 , { isIdle : true } ) } -----${ Render ( 'component ' , 50 , { isIdle : false } ) }
573
573
Time: ${ 0 } ${ 100 } ${ 200 }
574
574
`
575
575
@@ -585,9 +585,9 @@ describe('TraceManager', () => {
585
585
( spanAndAnnotation ) => spanAndAnnotation . span . performanceEntry ,
586
586
) ,
587
587
) . toMatchInlineSnapshot ( `
588
- events | start end (50)
589
- timeline | |-<⋯ +100 ⋯>-[++++++++++++++++++++++++++++++++++++++++++++++++]
590
- time (ms) | 0 100
588
+ events | start component(50) component (50)
589
+ timeline | |-<⋯ +100 ⋯>-[++++++++++++++]---------------[ ++++++++++++++]-
590
+ time (ms) | 0 100 200
591
591
` )
592
592
expect ( report . name ) . toBe ( 'ticket.interrupt-on-basic-operation' )
593
593
expect ( report . interruptionReason ) . toBe ( 'idle-component-no-longer-idle' )
0 commit comments