You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

GridScrollToLineWhileResizingTest.java 926B

12345678910111213141516171819202122232425262728293031323334
  1. package com.vaadin.tests.components.grid;
  2. import static org.junit.Assert.assertTrue;
  3. import java.util.List;
  4. import org.junit.Test;
  5. import org.openqa.selenium.By;
  6. import org.openqa.selenium.WebElement;
  7. import com.vaadin.testbench.elements.GridElement;
  8. import com.vaadin.testbench.parallel.TestCategory;
  9. import com.vaadin.tests.tb3.MultiBrowserTest;
  10. @TestCategory("grid")
  11. public class GridScrollToLineWhileResizingTest extends MultiBrowserTest {
  12. @Test
  13. public void testScrollToLineWorksWhileMovingSplitProgrammatically() {
  14. openTestURL();
  15. $(GridElement.class).first().getCell(21, 0).click();
  16. List<WebElement> cells = findElements(By.className("v-grid-cell"));
  17. boolean foundCell21 = false;
  18. for (WebElement cell : cells) {
  19. if ("cell21".equals(cell.getText())) {
  20. foundCell21 = true;
  21. }
  22. }
  23. assertTrue(foundCell21);
  24. }
  25. }