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.

CommunicationErrorTest.java 593B

123456789101112131415161718192021222324252627
  1. package com.vaadin.tests.requesthandlers;
  2. import static org.junit.Assert.assertTrue;
  3. import org.junit.Test;
  4. import org.openqa.selenium.By;
  5. import com.vaadin.testbench.elements.ButtonElement;
  6. import com.vaadin.tests.tb3.MultiBrowserTest;
  7. /**
  8. * Test for null values in communication error json object .
  9. *
  10. * @author Vaadin Ltd
  11. */
  12. public class CommunicationErrorTest extends MultiBrowserTest {
  13. @Test
  14. public void testRedirection() {
  15. openTestURL();
  16. $(ButtonElement.class).first().click();
  17. assertTrue(isElementPresent(By.className("redirected")));
  18. }
  19. }