Skip to content

Commit

Permalink
Updating test
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgperry committed Apr 16, 2024
1 parent 600bc54 commit c218181
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/framer-motion-3d/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@
"@react-three/test-renderer": "^9.0.0",
"@rollup/plugin-commonjs": "^22.0.1"
},
"gitHead": "311a7bb0c1a8c9393ee9ef5d3b270e97b6dddd0a"
"gitHead": "600bc54f65b59455a06f8ad7d2747a0139887bd9"
}
12 changes: 6 additions & 6 deletions packages/framer-motion/cypress/integration/drag-svg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
describe("Drag SVG", () => {
it("Drags the element by the defined distance", () => {
cy.visit("?test=drag-svg")
.wait(200)
.get("[data-testid='draggable']")
.wait(200)
.trigger("pointerdown", 0, 0, { force: true })
.trigger("pointermove", 10, 10, { force: true }) // Gesture will start from first move past threshold
.wait(50)
.trigger("pointermove", 200, 300, { force: true })
.get("[data-testid='draggable']")
.trigger("pointerdown", 50, 50, { force: true })
.wait(50)
.trigger("pointermove", 60, 60, { force: true }) // Gesture will start from first move past threshold
.wait(100)
.trigger("pointermove", 210, 310, { force: true })
.wait(100)
.trigger("pointerup", { force: true })
.should(($draggable: any) => {
const draggable = $draggable[0] as HTMLDivElement
Expand Down
2 changes: 1 addition & 1 deletion packages/framer-motion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,5 @@
"maxSize": "33.6 kB"
}
],
"gitHead": "311a7bb0c1a8c9393ee9ef5d3b270e97b6dddd0a"
"gitHead": "600bc54f65b59455a06f8ad7d2747a0139887bd9"
}

0 comments on commit c218181

Please sign in to comment.