]> source.dussan.org Git - vaadin-framework.git/commitdiff
Add a delay to a flaky test. (#12216) (#12229)
authorAnna Koskinen <Ansku@users.noreply.github.com>
Fri, 5 Mar 2021 11:47:33 +0000 (13:47 +0200)
committerGitHub <noreply@github.com>
Fri, 5 Mar 2021 11:47:33 +0000 (13:47 +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();