fix: strict top offset comparison fails in headed mode
Many tests were failing in click.spec.ts, hover.spec.ts, and mouse.spec.ts when I ran them locally in the Cypress Test Runner using the yarn run cypress open command. Please see the screenshots below.
All tests passed in headless mode.
The reason for the headed failures are that the top offset of the element is expected to be an integer but the actual value has a decimal of usually 0.1875.
The fix seems quite easy and works well for me locally. I just changed the Cypress comparison to allow for the small deviation. It seems like a relatively safe change.
Closes #236
Please let me know if I missed something.




I am actually surprised by this, it looks like some kind of issues in our calculations of the position? I'd like to have all the coordinates stable between different run modes.
@dmtrKovalenko I'm not sure why the extra decimal is always 0.1875 or why it's only present in headed mode. Can you reproduce this locally? I tried to change the viewport on the Cypress Test Runner but it didn't make a difference.