]> source.dussan.org Git - vaadin-framework.git/commitdiff
Make test more reliable
authorArtur Signell <artur@vaadin.com>
Tue, 12 Aug 2014 14:19:33 +0000 (17:19 +0300)
committerVaadin Code Review <review@vaadin.com>
Wed, 13 Aug 2014 13:24:49 +0000 (13:24 +0000)
Change-Id: I16a0000ae506b5aef4f4d44cf0ee7235da14a21a

uitest/src/com/vaadin/tests/components/datefield/DateFieldChangeResolutionTest.java

index 6820410059917340ff90bb27f7f0ba88e36c6c4e..e3c85224c07c37eae05394788a40a45aae0e3bb7 100644 (file)
@@ -99,7 +99,10 @@ public class DateFieldChangeResolutionTest extends MultiBrowserTest {
     }
 
     private void checkHeaderAndBody(Resolution resolution,
-            boolean textFieldIsEmpty) {
+            boolean textFieldIsEmpty) throws Exception {
+        // Popup date field has all kinds of strange timers on the
+        // client side
+        sleep(100);
         // Open the popup calendar, perform checks and close the popup.
         openPopupDateField();
         if (resolution.getCalendarField() >= Resolution.MONTH