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.

WindowInUiWithNoContentTest.java 754B

123456789101112131415161718192021222324252627282930
  1. package com.vaadin.tests.components.window;
  2. import static org.junit.Assert.assertEquals;
  3. import org.junit.Test;
  4. import org.openqa.selenium.WebElement;
  5. import com.vaadin.testbench.By;
  6. import com.vaadin.tests.tb3.MultiBrowserTest;
  7. /**
  8. * Test for Window attached to the UI with not content.
  9. *
  10. * @since 7.2
  11. * @author Vaadin Ltd
  12. */
  13. public class WindowInUiWithNoContentTest extends MultiBrowserTest {
  14. @Test
  15. public void testWindowInEmptyUI() {
  16. openTestURL();
  17. WebElement window = driver.findElement(By.className("v-window"));
  18. String position = window.getCssValue("position");
  19. assertEquals("Window element has non-absolute position and "
  20. + "is broken in the UI", "absolute", position);
  21. }
  22. }