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.

GridInWindowTest.java 635B

123456789101112131415161718192021
  1. package com.vaadin.tests.components.window;
  2. import org.junit.Test;
  3. import com.vaadin.testbench.elements.WindowElement;
  4. import com.vaadin.testbench.elements.ButtonElement;
  5. import com.vaadin.tests.tb3.SingleBrowserTest;
  6. public class GridInWindowTest extends SingleBrowserTest {
  7. @Test
  8. public void ensureAttachInHierachyChange() {
  9. openTestURL("debug");
  10. $(ButtonElement.class).first().click();
  11. assertNoErrorNotifications();
  12. $(WindowElement.class).first().close();
  13. assertNoErrorNotifications();
  14. $(ButtonElement.class).first().click();
  15. assertNoErrorNotifications();
  16. }
  17. }