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.

TableRowHeight2Test.java 978B

12345678910111213141516171819202122232425262728293031323334353637
  1. package com.vaadin.tests.components.table;
  2. import java.io.IOException;
  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.TableElement;
  8. import com.vaadin.tests.tb3.MultiBrowserTest;
  9. /**
  10. * Tests that rows are completely visible and clicking buttons doesn't change
  11. * anything.
  12. *
  13. * @author Vaadin Ltd
  14. */
  15. public class TableRowHeight2Test extends MultiBrowserTest {
  16. @Test
  17. public void testRowHeights() throws IOException {
  18. openTestURL();
  19. compareScreen("initial");
  20. TableElement table = $(TableElement.class).first();
  21. List<WebElement> rows = table.findElement(By.className("v-table-body"))
  22. .findElements(By.tagName("tr"));
  23. rows.get(0).findElements(By.className("v-button")).get(1).click();
  24. rows.get(1).findElements(By.className("v-button")).get(1).click();
  25. compareScreen("after");
  26. }
  27. }