@@ -205,7 +205,7 @@ describe('transitions', function() {
205
205
// isSideInnerWithinPath === true
206
206
describe ( 'when height(content) > height(sidebarInner)' , ( ) => {
207
207
beforeEach ( async ( ) => {
208
- setContentHeight ( sidebarInnerHeight * 2 ) ;
208
+ setContentHeight ( sidebarInnerHeight * 1.5 ) ;
209
209
await nextFrame ( ) ;
210
210
} ) ;
211
211
@@ -220,7 +220,7 @@ describe('transitions', function() {
220
220
await forceUpdate ( ) ;
221
221
expectTransitionTo ( BOTTOM_FIXED ) ;
222
222
223
- setContentHeight ( sidebarInnerHeight / 2 ) ;
223
+ setContentHeight ( sidebarInnerHeight / 1.5 ) ;
224
224
await forceUpdate ( ) ;
225
225
expectTransitionTo ( START ) ;
226
226
} ) ;
@@ -274,7 +274,7 @@ describe('transitions', function() {
274
274
await forceUpdate ( ) ;
275
275
expectTransitionTo ( UNFIXED ) ;
276
276
277
- setContentHeight ( sidebarInnerHeight / 2 ) ;
277
+ setContentHeight ( sidebarInnerHeight / 1.5 ) ;
278
278
await forceUpdate ( ) ;
279
279
expectTransitionTo ( START ) ;
280
280
} ) ;
@@ -408,7 +408,7 @@ describe('transitions', function() {
408
408
} ) ;
409
409
410
410
it ( 'START => FINISH' , async ( ) => {
411
- await scrollTo ( getElementBottom ( contentElement ) - window . innerHeight ) ;
411
+ await scrollTo ( getElementBottom ( contentElement ) - window . innerHeight + 1 ) ;
412
412
await forceUpdate ( ) ;
413
413
expectTransitionTo ( FINISH ) ;
414
414
} ) ;
0 commit comments