Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgperry committed Dec 13, 2024
1 parent cc3b826 commit 1108bd5
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/framer-motion/cypress/integration/layout-shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,16 +341,10 @@ describe("Shared layout: A -> B crossfade transition", () => {
})
})
.trigger("click")
.wait(200)
.get("#b")
/**
* Test that onLayoutAnimationStart fires
*/
.wait(20)
.should(([$box]: any) => {
expect($box.style.backgroundColor).to.equal("rgb(0, 255, 0)")
})
.wait(50)
.should(([$box]: any) => {
expect(window.getComputedStyle($box).borderRadius).to.equal(
"5% / 4%"
)
Expand All @@ -364,7 +358,7 @@ describe("Shared layout: A -> B crossfade transition", () => {
/**
* Test that onLayoutAnimationComplete fires
*/
.wait(220)
.wait(1200)
.should(([$box]: any) => {
expect($box.style.backgroundColor).to.equal("rgb(0, 0, 255)")
})
Expand Down

0 comments on commit 1108bd5

Please sign in to comment.