Attempt to fix the CoreBehaviorsTests.page_reset_annotation test failure
authorThiago H. de Paula Figueiredo <thiago@arsmachina.com.br>
Fri, 23 Nov 2018 17:37:49 +0000 (15:37 -0200)
committerThiago H. de Paula Figueiredo <thiago@arsmachina.com.br>
Fri, 23 Nov 2018 17:37:49 +0000 (15:37 -0200)
tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/CoreBehaviorsTests.java

index fbe83c5..1063b8e 100644 (file)
@@ -1573,18 +1573,22 @@ public class CoreBehaviorsTests extends App1TestCase
     {
         openLinks("PageReset Annotation Demo");
 
+        waitForElementToAppear("current");
         assertText("current", "0");
 
         clickAndWait("link=increment");
 
+        waitForElementToAppear("current");
         assertText("current", "1");
 
         clickAndWait("link=increment");
 
+        waitForElementToAppear("current");
         assertText("current", "2");
 
         clickAndWait("link=refresh");
 
+        waitForElementToAppear("current");
         assertText("current", "2");
 
         clickAndWait(BACK_TO_INDEX);