@@ -103,7 +103,9 @@ describe('TimelineRow component', () => {
103
103
104
104
mount (
105
105
< TestWrapper >
106
- < LineElement { ...props } />
106
+ < div style = { { width : '484px' } } >
107
+ < LineElement { ...props } />
108
+ </ div >
107
109
</ TestWrapper > ,
108
110
) ;
109
111
// Values of container and boxgraphic should be weird since we are extending timeline over selected value
@@ -116,7 +118,9 @@ describe('TimelineRow component', () => {
116
118
// rendered quite a lot to the left (translateX -100%)
117
119
mount (
118
120
< TestWrapper >
119
- < LineElement { ...props } timeline = { createTimelineMetrics ( { visibleStartTime : 300 , visibleEndTime : 500 } ) } />
121
+ < div style = { { width : '484px' } } >
122
+ < LineElement { ...props } timeline = { createTimelineMetrics ( { visibleStartTime : 300 , visibleEndTime : 500 } ) } />
123
+ </ div >
120
124
</ TestWrapper > ,
121
125
) ;
122
126
@@ -127,7 +131,9 @@ describe('TimelineRow component', () => {
127
131
// Same as default graph but alignment is from left so every element should start from left
128
132
mount (
129
133
< TestWrapper >
130
- < LineElement { ...props } timeline = { createTimelineMetrics ( { sortBy : 'duration' } ) } />
134
+ < div style = { { width : '484px' } } >
135
+ < LineElement { ...props } timeline = { createTimelineMetrics ( { sortBy : 'duration' } ) } />
136
+ </ div >
131
137
</ TestWrapper > ,
132
138
) ;
133
139
@@ -138,7 +144,9 @@ describe('TimelineRow component', () => {
138
144
// Try with unfinished item. No label since bar takes so wide space
139
145
mount (
140
146
< TestWrapper >
141
- < LineElement { ...props } timeline = { createTimelineMetrics ( { } ) } duration = { null } />
147
+ < div style = { { width : '484px' } } >
148
+ < LineElement { ...props } timeline = { createTimelineMetrics ( { } ) } duration = { null } />
149
+ </ div >
142
150
</ TestWrapper > ,
143
151
) ;
144
152
0 commit comments