mirror of https://github.com/apache/archiva.git
test login and register links are not here where creating admin is needed
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1234697 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0959261b3d
commit
d2c74bfc8e
|
@ -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() );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue