package org.apache.tapestry5.integration.app3

import org.apache.tapestry5.test.SeleniumTestCase
import org.testng.annotations.Test

class PageCatalogTests extends SeleniumTestCase
{

    @Test
    void load_page_catalog_page()
    {
        open("${baseURL}pagecatalog")

        assertTitle "Tapestry Page Catalog"

        clickAndWait "link=clear the cache"

        assertTitle "Tapestry Page Catalog"

        assertTextPresent "Page cache cleared"

        clickAndWait "link=Run the GC"

        assertTextPresent "Garbage collection freed"

        click "link=load all pages"
    }
}

package org.apache.tapestry5.integration.app3

import org.apache.tapestry5.test.SeleniumTestCase
import org.testng.annotations.Test

class PageCatalogTests extends SeleniumTestCase
{

    @Test
    void load_page_catalog_page()
    {
        def title = "Tapestry 5: Page Catalog"

        open("${baseURL}pagecatalog")

        assertTitle title

        clickAndWait "link=clear the cache"

        assertTitle title

        assertTextPresent "Page cache cleared"

        clickAndWait "link=Run the GC"

        assertTextPresent "Garbage collection freed"

        click "link=load all pages"
    }
}

Create an internal library, with an internal layout for builtin pages (PageCatalog, ServiceStatus)
TAP5-1678: Create an internal library, with an internal layout for builtin pages (PageCatalog, ServiceStatus)

git-svn-id: d9b8539636d91aff9cd33ed5cd52a0cf73394897@1177769 13f79535-47bb-0310-9956-ffa450edef68
