]> source.dussan.org Git - vaadin-framework.git/commitdiff
Add delays to a flaky test class. (#12209) (#12225)
authorAnna Koskinen <Ansku@users.noreply.github.com>
Fri, 5 Mar 2021 11:17:52 +0000 (13:17 +0200)
committerGitHub <noreply@github.com>
Fri, 5 Mar 2021 11:17:52 +0000 (13:17 +0200)
uitest/src/test/java/com/vaadin/tests/components/grid/GridEditRowTest.java

index 331c6c7f11abbd980e2327ac6af5bacfdc5a88cf..044cff0a4f701baa198ce8b65d4eb1e2c0e21217 100644 (file)
@@ -67,6 +67,8 @@ public class GridEditRowTest extends MultiBrowserTest {
         assertRowContents(0);
 
         waitForElementVisible(By.className("v-grid-editor"));
+        // wait for position corrections
+        sleep(100);
 
         assertEditorWithinGrid();
     }
@@ -80,6 +82,8 @@ public class GridEditRowTest extends MultiBrowserTest {
         editLastRow();
 
         waitForElementVisible(By.className("v-grid-editor"));
+        // wait for position corrections
+        sleep(100);
 
         assertRowContents(3);
         assertEditorWithinGrid();
@@ -94,6 +98,8 @@ public class GridEditRowTest extends MultiBrowserTest {
         editLastRow();
 
         waitForElementVisible(By.className("v-grid-editor"));
+        // wait for position corrections
+        sleep(100);
 
         assertRowContents(91);
         assertEditorWithinGrid();