archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jzurb...@apache.org
Subject svn commit: r947039 - /archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/BrowseTest.java
Date Fri, 21 May 2010 15:29:50 GMT
Author: jzurbano
Date: Fri May 21 15:29:49 2010
New Revision: 947039

URL: http://svn.apache.org/viewvc?rev=947039&view=rev
Log:
added selenium test to check the artifact page tabs

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

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/BrowseTest.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/BrowseTest.java?rev=947039&r1=947038&r2=947039&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/BrowseTest.java
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/BrowseTest.java
Fri May 21 15:29:49 2010
@@ -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
+}



Mime
View raw message