archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1234697 - /archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test-js/src/test/testng/org/apache/archiva/web/test/ArchivaAdminTest.java
Date Mon, 23 Jan 2012 08:33:25 GMT
Author: olamy
Date: Mon Jan 23 08:33:25 2012
New Revision: 1234697

URL: http://svn.apache.org/viewvc?rev=1234697&view=rev
Log:
test login and register links are not here where creating admin is needed

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

Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test-js/src/test/testng/org/apache/archiva/web/test/ArchivaAdminTest.java
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test-js/src/test/testng/org/apache/archiva/web/test/ArchivaAdminTest.java?rev=1234697&r1=1234696&r2=1234697&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test-js/src/test/testng/org/apache/archiva/web/test/ArchivaAdminTest.java
(original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp-test-js/src/test/testng/org/apache/archiva/web/test/ArchivaAdminTest.java
Mon Jan 23 08:33:25 2012
@@ -20,6 +20,7 @@ package org.apache.archiva.web.test;
  */
 
 import org.apache.archiva.web.test.parent.AbstractArchivaTest;
+import org.testng.Assert;
 import org.testng.annotations.AfterTest;
 import org.testng.annotations.BeforeSuite;
 import org.testng.annotations.BeforeTest;
@@ -63,6 +64,8 @@ public class ArchivaAdminTest
         // if not admin user created create one
         if ( isElementVisible( "create-admin-link" ) )
         {
+            Assert.assertFalse( getSelenium().isVisible( "login-link-a" ) );
+            Assert.assertFalse( getSelenium().isVisible( "register-link-a" ) );
             clickLinkWithLocator( "create-admin-link-a", false );
             assertCreateAdmin();
             String fullname = getProperty( "ADMIN_FULLNAME" );
@@ -75,6 +78,8 @@ public class ArchivaAdminTest
         }
         else
         {
+            Assert.assertTrue( getSelenium().isVisible( "login-link-a" ) );
+            Assert.assertTrue( getSelenium().isVisible( "register-link-a" ) );
             login( getAdminUsername(), getAdminPassword() );
         }
 



Mime
View raw message