Skip to content

Commit

Permalink
test: update goto offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
KaelWD committed Feb 6, 2025
1 parent f8f9602 commit c18c3ef
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ describe('goto', () => {
const bottom = container.querySelector('#bottom')!

await userEvent.click(top)
await expect.poll(() => window.scrollY).toBeCloseTo(1250, -1)
await expect.poll(() => window.scrollY).toBeCloseTo(1260, -1)

await userEvent.click(bottom)
await expect.poll(() => window.scrollY).toBe(0)
Expand All @@ -74,7 +74,7 @@ describe('goto', () => {
const end = container.querySelector('#end')!

await userEvent.click(start)
await expect.poll(() => window.scrollX).toBeCloseTo(755, -1)
await expect.poll(() => window.scrollX).toBeCloseTo(770, -1)

await userEvent.click(end)
await expect.poll(() => window.scrollX).toBe(0)
Expand Down

0 comments on commit c18c3ef

Please sign in to comment.