123456789101112131415161718192021222324252627282930 |
- package com.vaadin.tests.components.window;
-
- import static org.junit.Assert.assertEquals;
-
- import org.junit.Test;
- import org.openqa.selenium.WebElement;
-
- import com.vaadin.testbench.By;
- import com.vaadin.tests.tb3.MultiBrowserTest;
-
- /**
- * Test for Window attached to the UI with not content.
- *
- * @since 7.2
- * @author Vaadin Ltd
- */
- public class WindowInUiWithNoContentTest extends MultiBrowserTest {
-
- @Test
- public void testWindowInEmptyUI() {
- openTestURL();
-
- WebElement window = driver.findElement(By.className("v-window"));
- String position = window.getCssValue("position");
-
- assertEquals("Window element has non-absolute position and "
- + "is broken in the UI", "absolute", position);
- }
-
- }
|