Author: hlship Date: Thu Jul 28 23:56:24 2011 New Revision: 1152052 URL: http://svn.apache.org/viewvc?rev=1152052&view=rev Log: TAP5-1421: Test Ajax updates of the page, including dismiss all
Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/AlertsTests.groovy Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/AlertsTests.groovy URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/AlertsTests.groovy?rev=1152052&r1=1152051&r2=1152052&view=diff ============================================================================== --- tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/AlertsTests.groovy (original) +++ tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/app1/AlertsTests.groovy Thu Jul 28 23:56:24 2011 @@ -50,4 +50,27 @@ class AlertsTests extends SeleniumTestCa assertText "css=.t-alert-container", "" } + + @Test + void ajax_update_and_remove() + { + openLinks "Alerts Demo", "reset" + + select "css=#ajax select[name=\"severity\"]", "Error" + select "css=#ajax select[name=\"duration\"]", "Until Dismissed" + type "css=#ajax input[name=\"message\"]", "ajax error until" + + click "//input[@value='Ajax Update']" + + sleep 100 + + assertTextPresent "ajax error until" + + click "link=Dismiss all" + + // Check that the alert container is now empty + + assertText "css=.t-alert-container", "" + } + } \ No newline at end of file