2 * Copyright 2000-2016 Vaadin Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5 * use this file except in compliance with the License. You may obtain a copy of
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 * License for the specific language governing permissions and limitations under
16 package com.vaadin.tests.components.grid.basicfeatures.escalator;
18 import static org.junit.Assert.assertTrue;
20 import java.io.IOException;
22 import org.junit.Test;
23 import org.openqa.selenium.By;
25 import com.vaadin.tests.components.grid.basicfeatures.EscalatorBasicClientFeaturesTest;
28 * Test class to test the escalator level issue for ticket #16832
30 public class EscalatorRemoveAndAddRowsTest
31 extends EscalatorBasicClientFeaturesTest {
34 public void testRemoveAllRowsAndAddThirtyThenScroll() throws IOException {
37 selectMenuPath(GENERAL, POPULATE_COLUMN_ROW);
39 scrollVerticallyTo(99999);
40 assertTrue("Escalator is not scrolled to bottom.",
41 isElementPresent(By.xpath("//td[text() = 'Row 99: 0,99']")));
43 selectMenuPath(COLUMNS_AND_ROWS, BODY_ROWS, REMOVE_ALL_INSERT_SCROLL);
45 scrollVerticallyTo(99999);
46 assertTrue("Escalator is not scrolled to bottom.",
47 isElementPresent(By.xpath("//td[text() = 'Row 29: 0,129']")));