summaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorMarkus Koivisto <markus@vaadin.com>2016-04-05 11:33:28 +0300
committerTeemu Suo-Anttila <teemusa@vaadin.com>2016-04-05 15:04:24 +0300
commit4bce5d542c79bc914eb28be3d06678962bc5b744 (patch)
tree7829b108c761d9be02ea2cff83817a70f90300ed /uitest
parent8c0733d75692a638a5c5a2bece7eaa8b335176f8 (diff)
downloadvaadin-framework-4bce5d542c79bc914eb28be3d06678962bc5b744.tar.gz
vaadin-framework-4bce5d542c79bc914eb28be3d06678962bc5b744.zip
Fix Escalator BodyContainer logical top row tracking (#17262)
Change-Id: I43041999cba9429e3a08b09f14ac2e8f58774285
Diffstat (limited to 'uitest')
-rw-r--r--uitest/src/com/vaadin/tests/components/grid/basicfeatures/EscalatorBasicClientFeaturesTest.java8
-rw-r--r--uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridStructureTest.java14
2 files changed, 22 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/EscalatorBasicClientFeaturesTest.java b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/EscalatorBasicClientFeaturesTest.java
index 517f657c62..5367d32328 100644
--- a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/EscalatorBasicClientFeaturesTest.java
+++ b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/EscalatorBasicClientFeaturesTest.java
@@ -89,6 +89,13 @@ public abstract class EscalatorBasicClientFeaturesTest extends MultiBrowserTest
protected static final String ROW_99 = "Row 99";
@Override
+ public void setup() throws Exception {
+ super.setup();
+
+ setDebug(true);
+ }
+
+ @Override
protected Class<?> getUIClass() {
return EscalatorBasicClientFeatures.class;
}
@@ -272,6 +279,7 @@ public abstract class EscalatorBasicClientFeaturesTest extends MultiBrowserTest
By.className("v-escalator-scroller-horizontal"));
}
+ @Override
protected Object executeScript(String script, Object... args) {
return ((JavascriptExecutor) getDriver()).executeScript(script, args);
}
diff --git a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridStructureTest.java b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridStructureTest.java
index eb3d8672b3..7c50ae5d6e 100644
--- a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridStructureTest.java
+++ b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridStructureTest.java
@@ -295,6 +295,20 @@ public class GridStructureTest extends GridBasicFeaturesTest {
filterSomeAndAssert();
}
+ @Test
+ public void testBareItemSetChangeWithBottomScrollAndSmallViewport()
+ throws Exception {
+ openTestURL();
+ selectMenuPath("Component", "Size", "HeightMode Row");
+ getGridElement().getRow(GridBasicFeatures.ROWS - 1);
+ // filter
+ selectMenuPath("Component", "Filter", "Column 1 starts with \"(23\"");
+
+ String text = getGridElement().getCell(10, 0).getText();
+
+ assertFalse(text.isEmpty());
+ }
+
private void filterSomeAndAssert() {
selectMenuPath("Component", "Filter", "Column 1 starts with \"(23\"");
boolean foundElements = false;