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.

GridLayoutWidthChangeTest.java 621B

12345678910111213141516171819202122232425
  1. package com.vaadin.tests.layouts.gridlayout;
  2. import com.vaadin.testbench.elements.ButtonElement;
  3. import com.vaadin.tests.tb3.AbstractTB3Test;
  4. import com.vaadin.tests.tb3.MultiBrowserTest;
  5. import org.junit.Test;
  6. import java.io.IOException;
  7. import static org.junit.Assert.*;
  8. public class GridLayoutWidthChangeTest extends MultiBrowserTest {
  9. @Test
  10. public void layoutIsReduced() throws IOException {
  11. openTestURL();
  12. compareScreen("initial");
  13. $(ButtonElement.class).caption("Reduce GridLayout parent width")
  14. .first().click();
  15. compareScreen("buttonMoved");
  16. }
  17. }