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 5911f2df760f59fa9e535dbda22b9641b21fa03a..87ed5cf62a333fdf15dc7413f3ba267d3e038c00 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 @@ -35,6 +35,6 @@ async function invokeGetBoundingClientRect(page, methodName, dataName) { expect(Math.round(rectInfo.height)).toBe(RECT_HEIGHT) expect(Math.round(rectInfo.left)).toBe(RECT_LEFT) expect(Math.round(rectInfo.top) > 90).toBe(true) - expect(Math.round(rectInfo.right)).toBe(width - 15) + expect(width - 15 - Math.round(rectInfo.right) >= 0).toBe(true) expect(Math.round(rectInfo.bottom) > 200).toBe(true) }