Skip to content

Commit 2f4b17d

Browse files
committed
Fixing scroll e2e tests
1 parent 12e9233 commit 2f4b17d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ test-e2e: test-nextjs test-html test-react test-react-19
9595
yarn test-playwright
9696

9797
test-single: build test-mkdir
98-
yarn start-server-and-test "yarn dev-server" http://localhost:9990 "cd packages/framer-motion && cypress run --headless --spec cypress/integration/drag.ts"
98+
yarn start-server-and-test "yarn dev-server" http://localhost:9990 "cd packages/framer-motion && cypress run --headless --spec cypress/integration/scroll.ts"
9999

100100

101101
lint: bootstrap

packages/framer-motion/cypress/integration/scroll.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,9 @@ describe("scroll() animation", () => {
209209
expect(animateMainThreadDefaultBounds.left).to.equal(
210210
animateDefaultBounds.left
211211
)
212-
expect(animateMainThreadEaseOutBounds.left).to.equal(
213-
animateEaseOutBounds.left
214-
)
212+
expect(
213+
Math.round(animateMainThreadEaseOutBounds.left)
214+
).to.equal(Math.round(animateEaseOutBounds.left))
215215

216216
// Skipping as env doesn't support linear() easing
217217
// expect(miniSpringBounds.left).to.equal(animateSpringBounds.left)

0 commit comments

Comments
 (0)