Updated Branches:
  refs/heads/5.4-js-rewrite 2ce2925e8 -> e0dd5d2b6

Fix broken tests


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

Branch: refs/heads/5.4-js-rewrite
Commit: e0dd5d2b6968d95009e584e6ae2c8e7e5863d272
Parents: 762d453
Author: Howard M. Lewis Ship <[email protected]>
Authored: Mon Nov 26 10:58:25 2012 -0800
Committer: Howard M. Lewis Ship <[email protected]>
Committed: Mon Nov 26 10:58:25 2012 -0800

----------------------------------------------------------------------
 .../integration/app1/CanceledEventTests.groovy     |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/e0dd5d2b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/CanceledEventTests.groovy
----------------------------------------------------------------------
diff --git 
a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/CanceledEventTests.groovy
 
b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/CanceledEventTests.groovy
index 595b977..a6f7ddc 100644
--- 
a/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/CanceledEventTests.groovy
+++ 
b/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/CanceledEventTests.groovy
@@ -10,9 +10,11 @@ class CanceledEventTests extends TapestryCoreTestCase
     {
         openLinks "Canceled Event Demo"
 
+        sleep 100
+
         clickAndWait SUBMIT
 
-        assertText "css=.t-alert-container", "Form was canceled."
+        assertFirstAlert "Form was canceled."
     }
 
     @Test
@@ -20,8 +22,10 @@ class CanceledEventTests extends TapestryCoreTestCase
     {
         openLinks "Canceled Event Demo"
 
+        sleep 100
+
         clickAndWait "link=Cancel Form"
 
-        assertText "css=.t-alert-container", "Form was canceled."
+        assertFirstAlert "Form was canceled."
     }
 }

Reply via email to