@@ -205,11 +205,12 @@ 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
212
- it ( 'START => BOTTOM_FIXED' , async ( ) => {
212
+ it . only ( 'START => BOTTOM_FIXED' , async ( ) => {
213
+ await scrollTo ( ) ;
213
214
await scrollTo ( getElementBottom ( sidebarInnerElement ) - window . innerHeight + 1 ) ;
214
215
await forceUpdate ( ) ;
215
216
expectTransitionTo ( BOTTOM_FIXED ) ;
@@ -220,7 +221,7 @@ describe('transitions', function() {
220
221
await forceUpdate ( ) ;
221
222
expectTransitionTo ( BOTTOM_FIXED ) ;
222
223
223
- setContentHeight ( sidebarInnerHeight / 2 ) ;
224
+ setContentHeight ( sidebarInnerHeight / 1.5 ) ;
224
225
await forceUpdate ( ) ;
225
226
expectTransitionTo ( START ) ;
226
227
} ) ;
@@ -274,7 +275,7 @@ describe('transitions', function() {
274
275
await forceUpdate ( ) ;
275
276
expectTransitionTo ( UNFIXED ) ;
276
277
277
- setContentHeight ( sidebarInnerHeight / 2 ) ;
278
+ setContentHeight ( sidebarInnerHeight / 1.5 ) ;
278
279
await forceUpdate ( ) ;
279
280
expectTransitionTo ( START ) ;
280
281
} ) ;
@@ -408,7 +409,7 @@ describe('transitions', function() {
408
409
} ) ;
409
410
410
411
it ( 'START => FINISH' , async ( ) => {
411
- await scrollTo ( getElementBottom ( contentElement ) - window . innerHeight ) ;
412
+ await scrollTo ( getElementBottom ( contentElement ) - window . innerHeight + 1 ) ;
412
413
await forceUpdate ( ) ;
413
414
expectTransitionTo ( FINISH ) ;
414
415
} ) ;
0 commit comments