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.

GridColumnAutoExpandTest.java 648B

123456789101112131415161718192021222324
  1. package com.vaadin.tests.components.grid;
  2. import static org.junit.Assert.assertTrue;
  3. import org.junit.Test;
  4. import com.vaadin.testbench.elements.GridElement;
  5. import com.vaadin.testbench.elements.GridElement.GridCellElement;
  6. import com.vaadin.tests.tb3.MultiBrowserTest;
  7. public class GridColumnAutoExpandTest extends MultiBrowserTest {
  8. @Test
  9. public void testSecondColumnHasExpanded() {
  10. openTestURL();
  11. GridCellElement headerCell = $(GridElement.class).first()
  12. .getHeaderCell(0, 1);
  13. assertTrue("Column did not expand as expected",
  14. headerCell.getSize().getWidth() > 400);
  15. }
  16. }