mirror of https://github.com/apache/archiva.git
fixed failing selenium tests by:
o adding check if already in the page before attempting to click the link in nav menu o adding dependency to previous test for adding repository so proper order is executed git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@905969 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a70f43c67c
commit
1d8d52338c
|
@ -36,6 +36,7 @@ public class RepositoryTest
|
|||
assertRepositoriesPage();
|
||||
}
|
||||
|
||||
@Test(dependsOnMethods = { "testAddManagedRepoValidValues" } )
|
||||
public void testAddManagedRepoInvalidValues()
|
||||
{
|
||||
goToRepositoriesPage();
|
||||
|
|
|
@ -502,8 +502,11 @@ public abstract class AbstractArchivaTest
|
|||
}
|
||||
|
||||
public void goToRepositoriesPage()
|
||||
{
|
||||
if( !getTitle().equals( "Apache Archiva \\ Administration - Repositories" ) )
|
||||
{
|
||||
clickLinkWithText( "Repositories" );
|
||||
}
|
||||
assertRepositoriesPage();
|
||||
}
|
||||
|
||||
|
|
|
@ -27,8 +27,11 @@ public abstract class AbstractRepositoryTest
|
|||
{
|
||||
// Repository Groups
|
||||
public void goToRepositoryGroupsPage()
|
||||
{
|
||||
if( !getTitle().equals( "Apache Archiva \\ Administration - Repository Groups" ) )
|
||||
{
|
||||
clickLinkWithText( "Repository Groups" );
|
||||
}
|
||||
assertRepositoryGroupsPage();
|
||||
}
|
||||
|
||||
|
@ -289,7 +292,7 @@ public abstract class AbstractRepositoryTest
|
|||
|
||||
public void editManagedRepository( String fieldName, String value )
|
||||
{
|
||||
//goToRepositoriesPage();
|
||||
goToRepositoriesPage();
|
||||
clickLinkWithXPath( "//div[@id='contentArea']/div/div[5]/div[1]/a[1]/img" );
|
||||
assertPage( "Apache Archiva \\ Admin: Edit Managed Repository" );
|
||||
setFieldValue(fieldName, value);
|
||||
|
|
Loading…
Reference in New Issue