]> source.dussan.org Git - vaadin-framework.git/commitdiff
Add a delay to a flaky test. (#12216)
authorAnna Koskinen <Ansku@users.noreply.github.com>
Thu, 4 Mar 2021 11:00:04 +0000 (13:00 +0200)
committerGitHub <noreply@github.com>
Thu, 4 Mar 2021 11:00:04 +0000 (13:00 +0200)
uitest/src/test/java/com/vaadin/tests/components/grid/DateFieldHeaderScrollWithFrozenTest.java

index c934bee2a02f69c36d861877d0799e083c43c0f8..8d8b3e838279a874137ef95ae7c374c57e1940f1 100644 (file)
@@ -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();