From: Anna Koskinen Date: Thu, 4 Mar 2021 11:00:04 +0000 (+0200) Subject: Add a delay to a flaky test. (#12216) X-Git-Tag: 8.13.0.alpha1~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=46b5bf4a12f99499054b78f746ec7b31ecfe0308;p=vaadin-framework.git Add a delay to a flaky test. (#12216) --- diff --git a/uitest/src/test/java/com/vaadin/tests/components/grid/DateFieldHeaderScrollWithFrozenTest.java b/uitest/src/test/java/com/vaadin/tests/components/grid/DateFieldHeaderScrollWithFrozenTest.java index c934bee2a0..8d8b3e8382 100644 --- a/uitest/src/test/java/com/vaadin/tests/components/grid/DateFieldHeaderScrollWithFrozenTest.java +++ b/uitest/src/test/java/com/vaadin/tests/components/grid/DateFieldHeaderScrollWithFrozenTest.java @@ -24,6 +24,7 @@ public class DateFieldHeaderScrollWithFrozenTest extends MultiBrowserTest { GridCellElement frozenElement = gridElement.getHeaderCell(1, 1); gridElement.getHorizontalScroller().scrollLeft(60); + sleep(100); // wait for scrolling to finish int buttonRight = buttonElement.getLocation().getX() + buttonElement.getRect().getWidth();