The actual pageX/pageY values vary between browsers, os versions and headed/headless. Relaxing the expectation to ensure that the result is sensible after the pixel conversions.
ps