diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-01-13 14:58:26 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-01-13 20:20:45 +0000 |
commit | e52e34c5d53cf108a6d738dc91e0b736873ecce8 (patch) | |
tree | f69118f8d02a9d71612cc3fa24709865cc966784 /uitest/src/com/vaadin/tests/components/grid/GridSingleColumnTest.java | |
parent | 8e17afda2ec060f56da0626fb40b088670777e8c (diff) | |
download | vaadin-framework-e52e34c5d53cf108a6d738dc91e0b736873ecce8.tar.gz vaadin-framework-e52e34c5d53cf108a6d738dc91e0b736873ecce8.zip |
Defer Grid scrolling to avoid issues with DataSource sizes (#16189)
Change-Id: I47868ff8b139ffc8c3c95ee6cafa95b76be67914
Diffstat (limited to 'uitest/src/com/vaadin/tests/components/grid/GridSingleColumnTest.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/components/grid/GridSingleColumnTest.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/uitest/src/com/vaadin/tests/components/grid/GridSingleColumnTest.java b/uitest/src/com/vaadin/tests/components/grid/GridSingleColumnTest.java index 05f6b4b9f7..42eb2197bf 100644 --- a/uitest/src/com/vaadin/tests/components/grid/GridSingleColumnTest.java +++ b/uitest/src/com/vaadin/tests/components/grid/GridSingleColumnTest.java @@ -20,6 +20,7 @@ import org.junit.Test; import com.vaadin.testbench.elements.GridElement; import com.vaadin.testbench.elements.GridElement.GridCellElement; +import com.vaadin.testbench.elements.NotificationElement; import com.vaadin.tests.annotations.TestCategory; import com.vaadin.tests.tb3.MultiBrowserTest; @@ -27,11 +28,20 @@ import com.vaadin.tests.tb3.MultiBrowserTest; public class GridSingleColumnTest extends MultiBrowserTest { @Test - public void headerIsVisible() { + public void testHeaderIsVisible() { openTestURL(); GridCellElement cell = $(GridElement.class).first().getHeaderCell(0, 0); Assert.assertTrue("No header available", cell.getText() .equalsIgnoreCase("header")); } + + @Test + public void testScrollDidNotThrow() { + setDebug(true); + openTestURL(); + + Assert.assertFalse("Exception when scrolling on init", + isElementPresent(NotificationElement.class)); + } } |