Add some sleeps, hoping to make it work correctly
Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/61c9aba7 Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/61c9aba7 Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/61c9aba7 Branch: refs/heads/master Commit: 61c9aba7fb37db4fc38802fd95c26026f7419301 Parents: 7619f7e Author: Howard M. Lewis Ship <[email protected]> Authored: Mon Dec 17 09:43:19 2012 -0800 Committer: Howard M. Lewis Ship <[email protected]> Committed: Mon Dec 17 09:43:19 2012 -0800 ---------------------------------------------------------------------- .../integration/app1/ZoneRefreshTest.java | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/61c9aba7/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/ZoneRefreshTest.java ---------------------------------------------------------------------- diff --git a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/ZoneRefreshTest.java b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/ZoneRefreshTest.java index 46807e3..ad1c3f8 100644 --- a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/ZoneRefreshTest.java +++ b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/ZoneRefreshTest.java @@ -19,6 +19,9 @@ import org.testng.annotations.Test; public class ZoneRefreshTest extends SeleniumTestCase { + + private static final int WAIT = 250; + @Test public void test_if_zone_with_event_handler_returning_void_works() throws Exception { @@ -28,6 +31,8 @@ public class ZoneRefreshTest extends SeleniumTestCase clickAndWait("link=Zone Refresh With Event Handler Returning Void"); + sleep(WAIT); + checkZoneValues("zone", 3); } @@ -40,6 +45,8 @@ public class ZoneRefreshTest extends SeleniumTestCase clickAndWait("link=Zone Refresh With Event Handler Returning Zone"); + sleep(WAIT); + checkZoneValues("zone", 3); }
