From: Jevica Arianne B. Zurbano Date: Fri, 21 May 2010 15:29:49 +0000 (+0000) Subject: added selenium test to check the artifact page tabs X-Git-Tag: archiva-1.4-M1~938 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8d7216a00e07e5a55d56423a204b7498a57d1034;p=archiva.git added selenium test to check the artifact page tabs git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@947039 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/BrowseTest.java b/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/BrowseTest.java index ea60aaee6..5226f78e2 100644 --- a/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/BrowseTest.java +++ b/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/BrowseTest.java @@ -29,6 +29,20 @@ import org.testng.annotations.Test; public class BrowseTest extends AbstractBrowseTest { + public void testBrowseArtifactPageTabs() + { + goToBrowsePage(); + clickLinkWithText( getProperty( "ARTIFACT_GROUPID" ) + "/" ); + clickLinkWithText( getProperty( "ARTIFACT_ARTIFACTID" ) + "/" ); + clickLinkWithText( getProperty( "ARTIFACT_VERSION" ) + "/" ); + + assertTextPresent( "Info" ); + assertTextPresent( "Dependencies" ); + assertTextPresent( "Dependency Tree" ); + assertTextPresent( "Used By" ); + assertTextPresent( "Mailing Lists" ); + assertTextPresent( "Metadata" ); + } public void testBrowseArtifact() { @@ -151,4 +165,4 @@ public class BrowseTest assertPage( "Apache Archiva \\ Browse Repository" ); assertTextPresent( "Artifacts" ); } -} \ No newline at end of file +}