Skip to content

Commit

Permalink
Remove wait times
Browse files Browse the repository at this point in the history
  • Loading branch information
pksjce committed Aug 16, 2022
1 parent 67c5a22 commit 4d75e24
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/PageLayout/interaction.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,6 @@ const isInViewPort = (boundingRect: {top: number; left: number; right: number; b
StickyPane.play = async ({canvasElement}: {canvasElement: HTMLElement}) => {
const canvas = within(canvasElement)
const content3 = await canvas.getByTestId('content3')
// Trying to see if waiting for a bit makes the test more obvious
await new Promise(r => setTimeout(r, 1000))
content3.scrollIntoView()
const paragraph0 = await canvas.getByTestId('paragraph0')
const paragraphRect = paragraph0.getBoundingClientRect()
Expand Down Expand Up @@ -389,7 +387,6 @@ NonStickyPane.argTypes = {
NonStickyPane.play = async ({canvasElement}: {canvasElement: HTMLElement}) => {
const canvas = within(canvasElement)
const content3 = await canvas.getByTestId('content3')
await new Promise(r => setTimeout(r, 1000))
content3.scrollIntoView()
const paragraph0 = await canvas.getByTestId('paragraph0')
const paragraphRect = paragraph0.getBoundingClientRect()
Expand Down

0 comments on commit 4d75e24

Please sign in to comment.