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.

InvalidViewportTest.java 561B

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