aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2015-02-24 13:43:01 +0200
committerJohannes Dahlström <johannesd@vaadin.com>2015-02-24 12:42:29 +0000
commit4ee04a8348bc5645ed9b1d00807c64bb36ecb3ba (patch)
tree97cabebce121873b28ce094ed7a540356fa29ad8 /uitest/src/com
parent7a031a8653bfffe5d126d8a221a3374b611711e5 (diff)
downloadvaadin-framework-4ee04a8348bc5645ed9b1d00807c64bb36ecb3ba.tar.gz
vaadin-framework-4ee04a8348bc5645ed9b1d00807c64bb36ecb3ba.zip
Fix Escalator size changes when scrolled to bottom (#16382)
Change-Id: Iaf8b21e9c6a09e51667eebae1fdd4b1f5ebabedd
Diffstat (limited to 'uitest/src/com')
-rw-r--r--uitest/src/com/vaadin/tests/components/grid/basicfeatures/escalator/EscalatorRemoveAndAddRowsTest.java49
1 files changed, 49 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/escalator/EscalatorRemoveAndAddRowsTest.java b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/escalator/EscalatorRemoveAndAddRowsTest.java
new file mode 100644
index 0000000000..19ba72b49d
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/escalator/EscalatorRemoveAndAddRowsTest.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2000-2014 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.tests.components.grid.basicfeatures.escalator;
+
+import static org.junit.Assert.assertTrue;
+
+import java.io.IOException;
+
+import org.junit.Test;
+import org.openqa.selenium.By;
+
+import com.vaadin.tests.components.grid.basicfeatures.EscalatorBasicClientFeaturesTest;
+
+/**
+ * Test class to test the escalator level issue for ticket #16832
+ */
+public class EscalatorRemoveAndAddRowsTest extends
+ EscalatorBasicClientFeaturesTest {
+
+ @Test
+ public void testRemoveAllRowsAndAddThirtyThenScroll() throws IOException {
+ openTestURL();
+
+ selectMenuPath(GENERAL, POPULATE_COLUMN_ROW);
+
+ scrollVerticallyTo(99999);
+ assertTrue("Escalator is not scrolled to bottom.",
+ isElementPresent(By.xpath("//td[text() = 'Row 99: 0,99']")));
+
+ selectMenuPath(COLUMNS_AND_ROWS, BODY_ROWS, REMOVE_ALL_INSERT_SCROLL);
+
+ scrollVerticallyTo(99999);
+ assertTrue("Escalator is not scrolled to bottom.",
+ isElementPresent(By.xpath("//td[text() = 'Row 29: 0,129']")));
+ }
+}