Adjust test for prior changes to RadioDemo page's template

Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/d53d44d7
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/d53d44d7
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/d53d44d7

Branch: refs/heads/master
Commit: d53d44d7c6809de68956927203ee182c16fad858
Parents: b15f995
Author: Howard M. Lewis Ship <[email protected]>
Authored: Mon Apr 22 16:44:18 2013 -0700
Committer: Howard M. Lewis Ship <[email protected]>
Committed: Mon Apr 22 16:44:18 2013 -0700

----------------------------------------------------------------------
 .../tapestry5/integration/app1/FormTests.java      |   19 ++++++++++----
 1 files changed, 13 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/d53d44d7/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FormTests.java
----------------------------------------------------------------------
diff --git 
a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FormTests.java
 
b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FormTests.java
index 04d8cfb..91d1d37 100644
--- 
a/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FormTests.java
+++ 
b/tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/FormTests.java
@@ -1,4 +1,4 @@
-// Copyright 2009, 2010, 2011, 2012 The Apache Software Foundation
+// Copyright 2009-2013 The Apache Software Foundation
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -421,22 +421,29 @@ public class FormTests extends TapestryCoreTestCase
 
         String update = SUBMIT;
 
-        // in a loop ...
-        click("//label[.='Accounting']");
+        click("css=label:contains('Accounting')");
+
         clickAndWait(update);
+
         assertTextPresent("Selected department: ACCOUNTING");
 
-        click("//label[.='Sales And Marketing']");
+        click("css=label:contains('Sales And Marketing')");
+
         clickAndWait(update);
+
         assertTextPresent("Selected department: SALES_AND_MARKETING");
 
         // not in a loop ...
-        click("//label[.='Temp']");
+        click("css=label:contains('Temp')");
+
         clickAndWait(update);
+
         assertTextPresent("Selected position: TEMP");
 
-        click("//label[.='Lifer']");
+        click("css=label:contains('Lifer')");
+
         clickAndWait(update);
+
         assertTextPresent("Selected position: LIFER");
     }
 

Reply via email to