Author: ozizka(a)redhat.com
Date: 2009-03-18 12:26:04 -0400 (Wed, 18 Mar 2009)
New Revision: 242
Modified:
trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java
Log:
getNavTreeArrow(): Added waitUntilNodeLoadedByAjax() for nodes being loaded by AJAX after
expanding parent node.
Modified: trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java
===================================================================
--- trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java 2009-03-18
14:55:19 UTC (rev 241)
+++ trunk/jsfunit/src/test/java/org/jboss/jopr/jsfunit/EmbjoprTestCase.java 2009-03-18
16:26:04 UTC (rev 242)
@@ -186,7 +186,11 @@
*/
public ClickableElement getNavTreeArrow(String resourceName) throws
EmbJoprTestException {
- ejtt.navTree.waitUntilReady(100, 15); // Tree.Item can be still loading.
+ // Tree.Item JS object can be still loading.
+ ejtt.navTree.waitUntilReady(100, 15);
+ // After expanding some node, it's children are loaded using AJAX.
+ // Here, we wait for the node with given label to appear in the nav tree.
+ ejtt.navTree.waitUntilNodeLoadedByAjax(resourceName, 200, 10);
HtmlAnchor link = getNavTreeLink(resourceName);
String id = link.getIdAttribute();
Show replies by date