we run the PR validation for testbench-demo project on both Linux and Windows.
in the window build log, i saw the following error for ScreenshotIT
java.lang.UnsupportedOperationException: Viewport couldn't be adjusted.
at com.vaadin.testbench.commands.TestBenchCommandExecutor.resizeViewPortTo(TestBenchCommandExecutor.java:311)
at com.vaadin.testbenchexample.advanced.ScreenshotIT.setUp(ScreenshotIT.java:32)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
Caused by: java.lang.Exception: Viewport size couldn't be set to the desired '500,400' got '484,359'.
at com.vaadin.testbench.commands.TestBenchCommandExecutor.resizeViewPortTo(TestBenchCommandExecutor.java:305)
workaround :
update the testbench call testbench():resizeViewPortTo(500,400) to
getDriver().manage().window().setSize(new Dimension(500, 400));
makes the validation green again.
you can find both of the logs from links below
✅ https://github.com/vaadin/testbench-demo/actions/runs/22945919067/job/66598161360
❌ https://github.com/vaadin/testbench-demo/actions/runs/22905440292/job/66462715839#step:8:287
we run the PR validation for
testbench-demoproject on both Linux and Windows.in the window build log, i saw the following error for
ScreenshotITworkaround :
update the testbench call
testbench():resizeViewPortTo(500,400)tomakes the validation green again.
you can find both of the logs from links below
✅ https://github.com/vaadin/testbench-demo/actions/runs/22945919067/job/66598161360
❌ https://github.com/vaadin/testbench-demo/actions/runs/22905440292/job/66462715839#step:8:287