Fix test that broke with fix for SUREFIRE-1099

Project: http://git-wip-us.apache.org/repos/asf/maven-surefire/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-surefire/commit/52b79e61
Tree: http://git-wip-us.apache.org/repos/asf/maven-surefire/tree/52b79e61
Diff: http://git-wip-us.apache.org/repos/asf/maven-surefire/diff/52b79e61

Branch: refs/heads/master
Commit: 52b79e6191d5822ed947512ac6abf50946db8017
Parents: d78376b
Author: Andreas Gudian <agud...@apache.org>
Authored: Sat Sep 27 22:58:00 2014 +0200
Committer: Andreas Gudian <agud...@apache.org>
Committed: Sat Sep 27 22:58:00 2014 +0200

----------------------------------------------------------------------
 .../surefire/its/jiras/Surefire260TestWithIdenticalNamesIT.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/52b79e61/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire260TestWithIdenticalNamesIT.java
----------------------------------------------------------------------
diff --git 
a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire260TestWithIdenticalNamesIT.java
 
b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire260TestWithIdenticalNamesIT.java
index 85d7dfc..5f59eac 100644
--- 
a/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire260TestWithIdenticalNamesIT.java
+++ 
b/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/jiras/Surefire260TestWithIdenticalNamesIT.java
@@ -59,8 +59,8 @@ public class Surefire260TestWithIdenticalNamesIT
         final HtmlPage page = webClient.getPage( uri.toURL() );
 
         final HtmlAnchor a =
-            (HtmlAnchor) page.getByXPath( "//a[contains(@href, 
'surefire260_TestB_testDup')]" ).get( 0 );
-        final HtmlDivision content = (HtmlDivision) page.getElementById( 
"surefire260_TestB_testDuperror" );
+            (HtmlAnchor) page.getByXPath( "//a[@href = 
\"javascript:toggleDisplay('surefire260.TestB.testDup');\"]" ).get( 0 );
+        final HtmlDivision content = (HtmlDivision) page.getElementById( 
"surefire260.TestB.testDuperror" );
         assertTrue( content.getAttribute( "style" ).contains( "none" ) );
         a.click();
         assertFalse( content.getAttribute( "style" ).contains( "none" ) );

Reply via email to