From 8d7216a00e07e5a55d56423a204b7498a57d1034 Mon Sep 17 00:00:00 2001 From: "Jevica Arianne B. Zurbano" Date: Fri, 21 May 2010 15:29:49 +0000 Subject: [PATCH] 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 --- .../org/apache/archiva/web/test/BrowseTest.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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 +} -- 2.39.5