From d2c74bfc8eb8ae46bca7fcf31c9d0d2e6d50dd5a Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 23 Jan 2012 08:33:25 +0000 Subject: [PATCH] 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 --- .../testng/org/apache/archiva/web/test/ArchivaAdminTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/archiva-modules/archiva-web/archiva-webapp-test-js/src/test/testng/org/apache/archiva/web/test/ArchivaAdminTest.java b/archiva-modules/archiva-web/archiva-webapp-test-js/src/test/testng/org/apache/archiva/web/test/ArchivaAdminTest.java index 84bdfef1b..49387032f 100644 --- a/archiva-modules/archiva-web/archiva-webapp-test-js/src/test/testng/org/apache/archiva/web/test/ArchivaAdminTest.java +++ b/archiva-modules/archiva-web/archiva-webapp-test-js/src/test/testng/org/apache/archiva/web/test/ArchivaAdminTest.java @@ -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() ); }