]> source.dussan.org Git - vaadin-framework.git/commitdiff
Make test pass on all browsers
authorArtur Signell <artur@vaadin.com>
Wed, 14 Sep 2016 11:44:01 +0000 (14:44 +0300)
committerArtur Signell <artur@vaadin.com>
Wed, 14 Sep 2016 13:45:40 +0000 (13:45 +0000)
Change-Id: I8226ce8983eb72e0afb4948fc644cb587bc01708

uitest/src/test/java/com/vaadin/tests/components/grid/GridApplyFilterWhenScrolledDownTest.java

index 279cf8ef95855655a8a8d7f7630709cb96bd5f1c..ca77668c179d20a88950b7313d9a9d6b202d996d 100644 (file)
@@ -34,7 +34,11 @@ public class GridApplyFilterWhenScrolledDownTest extends MultiBrowserTest {
                 .get(0);
         Assert.assertEquals("Test", cell.getText());
 
+        int gridHeight = grid.getSize().getHeight();
+        int scrollerHeight = grid.getVerticalScroller().getSize().getHeight();
         Assert.assertTrue(
-                grid.getVerticalScroller().getSize().getHeight() < 100);
+                "Scroller height is " + scrollerHeight
+                        + ", should be smaller than grid height: " + gridHeight,
+                scrollerHeight < gridHeight);
     }
 }