testbench icon indicating copy to clipboard operation
testbench copied to clipboard

resizeViewPortTo resizes to the wrong size most of the time in Safari 14

Open Artur- opened this issue 4 years ago • 0 comments

Running

    @Test
    public void sizeTest() throws IOException {
        testBench().resizeViewPortTo(1550, 850);
        testBench().compareScreen("hello");
    }

on Saucelabs with various browser versions produces

error-screenshots/hello_mac_Safari_13.png:      PNG image data, 1550 x 850, 8-bit/color RGBA, non-interlaced
error-screenshots/hello_mac_Safari_14.png:      PNG image data, 1535 x 850, 8-bit/color RGBA, non-interlaced
error-screenshots/hello_windows_chrome_87.png:  PNG image data, 1550 x 850, 8-bit/color RGBA, non-interlaced
error-screenshots/hello_windows_firefox_84.png: PNG image data, 1550 x 850, 8-bit/color RGBA, non-interlaced
error-screenshots/hello_windows_msedge_87.png:  PNG image data, 1550 x 850, 8-bit/color RGBA, non-interlaced

for some reason, Safari 14 is 15px narrower than all the others. This happens most of the time, in some cases Safari 14 is the correct size.

Artur- avatar Dec 17 '20 10:12 Artur-