diff options
author | Aleksi Hietanen <aleksi@vaadin.com> | 2017-04-12 15:03:17 +0300 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-04-12 15:03:17 +0300 |
commit | 2c3e399cb654588c8159e0e4ec4de7cc7de81b7b (patch) | |
tree | d42b862d3e978852a2b7143f3dc94af8730e8169 /uitest/src | |
parent | c1ecea9aa4729b1c8c3d00ebefa1a2a08a352ebf (diff) | |
download | vaadin-framework-2c3e399cb654588c8159e0e4ec4de7cc7de81b7b.tar.gz vaadin-framework-2c3e399cb654588c8159e0e4ec4de7cc7de81b7b.zip |
Fix empty TreeGrid (#9067)
Diffstat (limited to 'uitest/src')
-rw-r--r-- | uitest/src/main/java/com/vaadin/tests/components/treegrid/TreeGridEmpty.java | 14 | ||||
-rw-r--r-- | uitest/src/test/java/com/vaadin/tests/components/treegrid/TreeGridEmptyTest.java | 19 |
2 files changed, 33 insertions, 0 deletions
diff --git a/uitest/src/main/java/com/vaadin/tests/components/treegrid/TreeGridEmpty.java b/uitest/src/main/java/com/vaadin/tests/components/treegrid/TreeGridEmpty.java new file mode 100644 index 0000000000..362226a69a --- /dev/null +++ b/uitest/src/main/java/com/vaadin/tests/components/treegrid/TreeGridEmpty.java @@ -0,0 +1,14 @@ +package com.vaadin.tests.components.treegrid; + +import com.vaadin.server.VaadinRequest; +import com.vaadin.tests.components.AbstractTestUI; +import com.vaadin.ui.TreeGrid; + +public class TreeGridEmpty extends AbstractTestUI { + + @Override + protected void setup(VaadinRequest request) { + TreeGrid<String> grid = new TreeGrid<>(); + addComponent(grid); + } +} diff --git a/uitest/src/test/java/com/vaadin/tests/components/treegrid/TreeGridEmptyTest.java b/uitest/src/test/java/com/vaadin/tests/components/treegrid/TreeGridEmptyTest.java new file mode 100644 index 0000000000..2f0c886916 --- /dev/null +++ b/uitest/src/test/java/com/vaadin/tests/components/treegrid/TreeGridEmptyTest.java @@ -0,0 +1,19 @@ +package com.vaadin.tests.components.treegrid; + +import static org.junit.Assert.assertFalse; + +import org.junit.Test; +import org.openqa.selenium.By; + +import com.vaadin.tests.tb3.SingleBrowserTest; + +public class TreeGridEmptyTest extends SingleBrowserTest { + + @Test + public void empty_treegrid_initialized_correctly() { + setDebug(true); + openTestURL(); + assertNoErrorNotifications(); + assertFalse(isElementPresent(By.className("v-errorindicator"))); + } +} |