]> source.dussan.org Git - archiva.git/commitdiff
added selenium test to check the artifact page tabs
authorJevica Arianne B. Zurbano <jzurbano@apache.org>
Fri, 21 May 2010 15:29:49 +0000 (15:29 +0000)
committerJevica Arianne B. Zurbano <jzurbano@apache.org>
Fri, 21 May 2010 15:29:49 +0000 (15:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@947039 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/BrowseTest.java

index ea60aaee6d9390500ca9141313e223df9d65c630..5226f78e2960cd36c30b07a2c08da630079ced98 100644 (file)
@@ -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
+}