From 2ec5172d3b4ee6852fa1e98ddc71bdaabb3dbbf7 Mon Sep 17 00:00:00 2001 From: Matt Perry Date: Wed, 20 Mar 2024 12:49:10 +0100 Subject: [PATCH] Fixing --- packages/framer-motion/cypress/integration/waapi.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/framer-motion/cypress/integration/waapi.ts b/packages/framer-motion/cypress/integration/waapi.ts index 91a71d82da..03de432516 100644 --- a/packages/framer-motion/cypress/integration/waapi.ts +++ b/packages/framer-motion/cypress/integration/waapi.ts @@ -21,7 +21,9 @@ describe("waapi", () => { .wait(200) .should(([$element]: any) => { expect(getComputedStyle($element).opacity).not.to.equal("1") - expect($element.getBoundingClientRect().width).not.to.equal(100) + expect( + Math.floor($element.getBoundingClientRect().width) + ).not.to.equal(100) }) }) })