Author: hlship
Date: Fri Dec 23 18:55:32 2011
New Revision: 1222793

URL: http://svn.apache.org/viewvc?rev=1222793&view=rev
Log:
Fix the GridSymbolDemoTests to be less flakey (damn you Selenium!)

Modified:
    
tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/symbolparam/GridSymbolDemoTests.groovy

Modified: 
tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/symbolparam/GridSymbolDemoTests.groovy
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/symbolparam/GridSymbolDemoTests.groovy?rev=1222793&r1=1222792&r2=1222793&view=diff
==============================================================================
--- 
tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/symbolparam/GridSymbolDemoTests.groovy
 (original)
+++ 
tapestry/tapestry5/trunk/tapestry-core/src/test/groovy/org/apache/tapestry5/integration/symbolparam/GridSymbolDemoTests.groovy
 Fri Dec 23 18:55:32 2011
@@ -29,9 +29,10 @@ class GridSymbolDemoTests extends Tapest
 
         clickAndWait "link=4"
 
-        assertText("//tr[1]/td[3]", "6");
-        assertText("//tr[1]/td[4]", "false");
-        assertText("//tr[2]/td[3]", "7");
-        assertText("//tr[2]/td[4]", "true");
+        // Using the XPath selectors was a bit flakey, so maybe css is better.
+        assertText("css=tr.t-first td.me", "6");
+        assertText("css=tr.t-first td.odd", "false");
+        assertText("css=tr.t-last td.me", "7");
+        assertText("css=tr.t-first td.odd", "false");
     }
 }


Reply via email to