]> source.dussan.org Git - vaadin-framework.git/commitdiff
Merge changes from origin/7.2
authorArtur Signell <artur@vaadin.com>
Fri, 2 May 2014 08:06:12 +0000 (11:06 +0300)
committerArtur Signell <artur@vaadin.com>
Fri, 2 May 2014 08:06:33 +0000 (11:06 +0300)
08b0589 Refactored TimeoutRedirectResetsOnActivity tests.

Conflicts:
uitest/src/com/vaadin/tests/components/ui/TimeoutRedirectResetsOnActivityTest.java

Change-Id: Id2dc47cb5396a24c97a2689c1412b29a421ac400

1  2 
uitest/src/com/vaadin/tests/components/ui/TimeoutRedirectResetsOnActivityTest.java

index dda416ca7ca9b8957ad94e1cbd2c0c6b7ff17d22,f4a7a68983ff1835a03357f9ed030a289ef6e5d0..eecefbebe1915b71d75267cfb45264f7e9dbf37f
   */
  package com.vaadin.tests.components.ui;
  
- import static org.junit.Assert.assertTrue;
+ import static org.hamcrest.CoreMatchers.is;
+ import static org.hamcrest.CoreMatchers.not;
+ import static org.hamcrest.MatcherAssert.assertThat;
  
 +import org.junit.Ignore;
+ import org.junit.Rule;
  import org.junit.Test;
- import org.openqa.selenium.By;
- import org.openqa.selenium.NoSuchElementException;
  import org.openqa.selenium.WebElement;
  
  import com.vaadin.tests.tb3.MultiBrowserTest;
+ import com.vaadin.tests.tb3.RetryOnFail;
  
  public class TimeoutRedirectResetsOnActivityTest extends MultiBrowserTest {
+     @Rule
+     // Timing issues are really hard to resolve in a way that this test would be
+     // 100% reliable on all browsers. Hence we shall allow one retry.
+     public RetryOnFail retry = new RetryOnFail();
+     private int waitBeforeActivity = 4000;
+     private int communicationOverhead = 2000;
+     private static int i = 0;
      @Test
 +    @Ignore("The test modifies the system messages, which are global and the changes will affect other tests")
      public void verifyRedirectWorks() throws Exception {
          setDebug(true);
          openTestURL();