blob: 72c31d19a40926d3d137390fee60c93fe32f7681 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package com.vaadin.tests.components.window;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.openqa.selenium.Dimension;
import com.vaadin.testbench.elements.WindowElement;
import com.vaadin.tests.tb3.SingleBrowserTest;
public class WindowMaxHeightTest extends SingleBrowserTest {
@Test
public void ensureWindowNotFullHeight() {
openTestURL();
WindowElement window = $(WindowElement.class).first();
Dimension size = window.getSize();
assertTrue("Window should be 200-250px high, was " + size.getHeight(),
size.getHeight() < 250);
}
}
|