You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2011/10/04 00:05:07 UTC

svn commit: r1178608 - /tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app3/PageCatalogTests.groovy

Author: hlship
Date: Mon Oct  3 22:05:06 2011
New Revision: 1178608

URL: http://svn.apache.org/viewvc?rev=1178608&view=rev
Log:
TAP5-1678: Fix problems in test suite

 Update for links converted to use Ajax partial page updates

Modified:
    tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app3/PageCatalogTests.groovy

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app3/PageCatalogTests.groovy
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app3/PageCatalogTests.groovy?rev=1178608&r1=1178607&r2=1178608&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app3/PageCatalogTests.groovy (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app3/PageCatalogTests.groovy Mon Oct  3 22:05:06 2011
@@ -1,11 +1,10 @@
 package org.apache.tapestry5.integration.app3
 
-import org.apache.tapestry5.test.SeleniumTestCase
+import org.apache.tapestry5.integration.TapestryCoreTestCase
 import org.testng.annotations.Test
 
-class PageCatalogTests extends SeleniumTestCase
+class PageCatalogTests extends TapestryCoreTestCase
 {
-
     @Test
     void load_page_catalog_page()
     {
@@ -15,16 +14,22 @@ class PageCatalogTests extends SeleniumT
 
         assertTitle title
 
-        clickAndWait "link=clear the cache"
+        click "link=clear the cache"
 
-        assertTitle title
+        waitForAjaxRequestsToComplete "500"
 
         assertTextPresent "Page cache cleared"
 
-        clickAndWait "link=Run the GC"
+        click "link=Run the GC"
+
+        waitForAjaxRequestsToComplete "500"
 
         assertTextPresent "Garbage collection freed"
 
         click "link=load all pages"
+
+        waitForAjaxRequestsToComplete "2000"
+
+        assertTextPresent "new pages for selector"
     }
 }