diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-02-24 13:07:09 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2015-03-02 21:51:32 +0200 |
commit | a7eec5507effc87f6b3b91384ee701ffb4e163a3 (patch) | |
tree | cdb3420eb855d7dfbe698abf7fe300fff8c2f2a0 /uitest/src | |
parent | 587104589cd7907946fdf1d5508602da5545096f (diff) | |
download | vaadin-framework-a7eec5507effc87f6b3b91384ee701ffb4e163a3.tar.gz vaadin-framework-a7eec5507effc87f6b3b91384ee701ffb4e163a3.zip |
Fix adding and modifying multiple rows in Grid (#16905)
Change-Id: Ib3ae8d305f44a78c9bd6f4539ca9cee2a487d269
Diffstat (limited to 'uitest/src')
-rw-r--r-- | uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridRowAddRemoveTest.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridRowAddRemoveTest.java b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridRowAddRemoveTest.java index 8535efb9ef..b7c33519dd 100644 --- a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridRowAddRemoveTest.java +++ b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridRowAddRemoveTest.java @@ -18,12 +18,14 @@ package com.vaadin.tests.components.grid.basicfeatures.server; import org.junit.Assert; import org.junit.Test; +import com.vaadin.testbench.elements.NotificationElement; import com.vaadin.tests.components.grid.basicfeatures.GridBasicFeaturesTest; public class GridRowAddRemoveTest extends GridBasicFeaturesTest { @Test public void addRows_loadAllAtOnce() { + setDebug(true); openTestURL(); selectMenuPath("Settings", "Clear log"); @@ -54,4 +56,16 @@ public class GridRowAddRemoveTest extends GridBasicFeaturesTest { "All newly required rows should be fetched in the same round trip.", logContainsText("Requested items 37 - 55")); } + + @Test + public void testAdd18Rows() { + setDebug(true); + openTestURL(); + + selectMenuPath("Settings", "Clear log"); + selectMenuPath("Component", "Body rows", "Add 18 rows"); + + Assert.assertFalse("An error notification is present.", + isElementPresent(NotificationElement.class)); + } } |