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 494B

12345678910111213141516171819202122
  1. package com.vaadin.tests.components.ui;
  2. import static org.junit.Assert.assertEquals;
  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. assertEquals("HTTP ERROR 500", heading.getText());
  13. }
  14. }