blob: 5ad998670cb94e3d05e3bf4e02a011e102eb8976 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
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);
}
}
|