diff --git a/pages/API/element-get-bounding-client-rect-async/element-get-bounding-client-rect-async.test.js b/pages/API/element-get-bounding-client-rect-async/element-get-bounding-client-rect-async.test.js index 82b743764f31c89d5b468de1362baa82e58f48fb..5911f2df760f59fa9e535dbda22b9641b21fa03a 100644 --- a/pages/API/element-get-bounding-client-rect-async/element-get-bounding-client-rect-async.test.js +++ b/pages/API/element-get-bounding-client-rect-async/element-get-bounding-client-rect-async.test.js @@ -31,7 +31,7 @@ async function invokeGetBoundingClientRect(page, methodName, dataName) { expect(Math.round(rectInfo.x)).toBe(RECT_X) expect(Math.round(rectInfo.y) > 90).toBe(true) - expect(Math.round(rectInfo.width)).toBe(width - 15 * 2) + expect(width - 15 * 2 - Math.round(rectInfo.width) >= 0).toBe(true) expect(Math.round(rectInfo.height)).toBe(RECT_HEIGHT) expect(Math.round(rectInfo.left)).toBe(RECT_LEFT) expect(Math.round(rectInfo.top) > 90).toBe(true)