You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by dr...@apache.org on 2011/07/02 11:16:53 UTC

svn commit: r1142182 - /tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/TreeTests.groovy

Author: drobiazko
Date: Sat Jul  2 09:16:53 2011
New Revision: 1142182

URL: http://svn.apache.org/viewvc?rev=1142182&view=rev
Log:
Trying out different wait conditions for ajax requests.

Modified:
    tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/TreeTests.groovy

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/TreeTests.groovy
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/TreeTests.groovy?rev=1142182&r1=1142181&r2=1142182&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/TreeTests.groovy (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/TreeTests.groovy Sat Jul  2 09:16:53 2011
@@ -31,7 +31,7 @@ class TreeTests extends SeleniumTestCase
         //Click on Games
         click "//div[@class='t-tree-container test-hook']/ul/li[2]/span[@class='t-tree-icon']"
 
-        waitForCSSSelectedElementToAppear "span.t-tree-expanded"
+        waitForCondition "selenium.browserbot.getCurrentWindow().Ajax.activeRequestCount == 0", PAGE_LOAD_TIMEOUT
 
         assertTextPresent "Board Games"