continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r899198 - /continuum/branches/continuum-1.3.x/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/parent/AbstractContinuumTest.java
Date Thu, 14 Jan 2010 13:55:43 GMT
Author: brett
Date: Thu Jan 14 13:55:43 2010
New Revision: 899198

URL: http://svn.apache.org/viewvc?rev=899198&view=rev
Log:
ensure page is fully loaded after the add page

Modified:
    continuum/branches/continuum-1.3.x/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/parent/AbstractContinuumTest.java

Modified: continuum/branches/continuum-1.3.x/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/parent/AbstractContinuumTest.java
URL: http://svn.apache.org/viewvc/continuum/branches/continuum-1.3.x/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/parent/AbstractContinuumTest.java?rev=899198&r1=899197&r2=899198&view=diff
==============================================================================
--- continuum/branches/continuum-1.3.x/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/parent/AbstractContinuumTest.java
(original)
+++ continuum/branches/continuum-1.3.x/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/parent/AbstractContinuumTest.java
Thu Jan 14 13:55:43 2010
@@ -796,7 +796,8 @@
     public void waitAddProject(String title )
         throws Exception
     {
-        String condition = "selenium.browserbot.getCurrentWindow().document.title.replace(/^\\s*/,
\"\").replace(/\\s*$/, \"\") != ''";
+        // the "adding project" interstitial page has an empty title, so we wait for a real
title to appear
+        String condition = "selenium.browserbot.getCurrentWindow().document.title.replace(/^\\s*/,
\"\").replace(/\\s*$/, \"\") != '' && selenium.browserbot.getCurrentWindow().document.getElementById('footer')
!= null";
         getSelenium().waitForCondition( condition, maxWaitTimeInMs );
         Assert.assertEquals( getTitle(), title );
     }



Mime
View raw message