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.

GridHeightByRowOnInitTest.java 627B

1234567891011121314151617181920
  1. package com.vaadin.tests.components.grid.basicfeatures;
  2. import org.junit.Test;
  3. import com.vaadin.testbench.elements.GridElement;
  4. import com.vaadin.testbench.parallel.TestCategory;
  5. import com.vaadin.tests.tb3.MultiBrowserTest;
  6. @SuppressWarnings("all")
  7. @TestCategory("grid")
  8. public class GridHeightByRowOnInitTest extends MultiBrowserTest {
  9. @Test
  10. public void gridHeightIsMoreThanACoupleOfRows() {
  11. openTestURL();
  12. int height = $(GridElement.class).first().getSize().getHeight();
  13. assertGreater("Grid should be much taller than 150px (was " + height
  14. + "px)", height, 150);
  15. }
  16. }