blob: b0d5727f68786812862a093180cd89cf2914fb7c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package com.vaadin.tests.components.ui;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import com.vaadin.tests.tb3.SingleBrowserTest;
public class InvalidViewportTest extends SingleBrowserTest {
@Test
public void testInvalidViewport() {
openTestURL();
WebElement heading = findElement(By.tagName("h2"));
assertTrue("Unexpected heading: " + heading.getText(),
heading.getText().startsWith("HTTP ERROR 500"));
}
}
|