You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2012/12/16 02:17:33 UTC

[23/50] git commit: Fix broken test

Fix broken test


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/e677ed02
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/e677ed02
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/e677ed02

Branch: refs/heads/master
Commit: e677ed02872dd1408af895dd3173f590097fe19b
Parents: 771ebc4
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Wed Dec 5 16:13:17 2012 -0800
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Wed Dec 5 16:13:17 2012 -0800

----------------------------------------------------------------------
 .../tapestry5/integration/app1/AjaxTests.java      |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/e677ed02/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AjaxTests.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AjaxTests.java b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AjaxTests.java
index bccab9a..69c378f 100644
--- a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AjaxTests.java
+++ b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/AjaxTests.java
@@ -202,21 +202,21 @@ public class AjaxTests extends TapestryCoreTestCase
 
         assertText("sum", "0.0");
 
-        click("link=Add a row");
+        click("link=Add another value");
 
-        sleep(1000);
+        sleep(250);
 
         type("//input[@type='text'][1]", "5.1");
 
-        // I wanted to add two rows, but Selenium didn't want to play.
-
         clickAndWait(SUBMIT);
 
+        waitForPageInitialized();
+
         assertText("sum", "5.1");
 
         click("link=remove");
 
-        sleep(2000);
+        sleep(100);
 
         clickAndWait(SUBMIT);