File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -359,6 +359,8 @@ const isInViewPort = (boundingRect: {top: number; left: number; right: number; b
359359StickyPane . play = async ( { canvasElement} : { canvasElement : HTMLElement } ) => {
360360 const canvas = within ( canvasElement )
361361 const content3 = await canvas . getByTestId ( 'content3' )
362+ // Trying to see if waiting for a bit makes the test more obvious
363+ await new Promise ( r => setTimeout ( r , 1000 ) )
362364 content3 . scrollIntoView ( )
363365 const paragraph0 = await canvas . getByTestId ( 'paragraph0' )
364366 const paragraphRect = paragraph0 . getBoundingClientRect ( )
@@ -387,6 +389,7 @@ NonStickyPane.argTypes = {
387389NonStickyPane . play = async ( { canvasElement} : { canvasElement : HTMLElement } ) => {
388390 const canvas = within ( canvasElement )
389391 const content3 = await canvas . getByTestId ( 'content3' )
392+ await new Promise ( r => setTimeout ( r , 1000 ) )
390393 content3 . scrollIntoView ( )
391394 const paragraph0 = await canvas . getByTestId ( 'paragraph0' )
392395 const paragraphRect = paragraph0 . getBoundingClientRect ( )
You can’t perform that action at this time.
0 commit comments