mirror of https://github.com/apache/archiva.git
[MRM-1323] archiva webapp tests failed to run in internet explorer
Submitted by: Gwen Harold Autencio git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@924673 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4c5672c59e
commit
ac57eadd48
|
@ -96,15 +96,15 @@ public class ArtifactManagementTest
|
||||||
@Test( groups = "requiresUpload" )
|
@Test( groups = "requiresUpload" )
|
||||||
public void testDotNetTypes()
|
public void testDotNetTypes()
|
||||||
{
|
{
|
||||||
addArtifact( getGroupId(), "testDotNetTypes", getVersion(), "library", getArtifactFilePath(),
|
addArtifact( "dotNetTypes", "dotNetTypes", getVersion(), "library", getArtifactFilePath(),
|
||||||
getRepositoryId() );
|
getRepositoryId() );
|
||||||
assertTextPresent( "Artifact 'test:testDotNetTypes:1.0' was successfully deployed to repository 'internal'" );
|
assertTextPresent( "Artifact 'dotNetTypes:dotNetTypes:1.0' was successfully deployed to repository 'internal'" );
|
||||||
getSelenium().open( baseUrl + "/browse/" + getGroupId() + "/testDotNetTypes/" + getVersion() );
|
getSelenium().open( baseUrl + "/browse/" + "dotNetTypes" + "/dotNetTypes/" + getVersion() );
|
||||||
waitPage();
|
waitPage();
|
||||||
|
|
||||||
assertTextPresent( "<type>library</type>" );
|
assertTextPresent( "<type>library</type>" );
|
||||||
String basePath =
|
String basePath =
|
||||||
"/archiva/repository/internal/" + getGroupId() + "/testDotNetTypes/" + getVersion() + "/testDotNetTypes-" +
|
"/archiva/repository/internal/" + "dotNetTypes" + "/dotNetTypes/" + getVersion() + "/dotNetTypes-" +
|
||||||
getVersion();
|
getVersion();
|
||||||
assertLinkPresent( ".NET Library" );
|
assertLinkPresent( ".NET Library" );
|
||||||
assertElementPresent( "//a[@href='" + basePath + ".dll']" );
|
assertElementPresent( "//a[@href='" + basePath + ".dll']" );
|
||||||
|
|
|
@ -29,7 +29,7 @@ public class RepositoryTest
|
||||||
public void testAddManagedRepoValidValues()
|
public void testAddManagedRepoValidValues()
|
||||||
{
|
{
|
||||||
goToRepositoriesPage();
|
goToRepositoriesPage();
|
||||||
clickLinkWithLocator( "//div[@id='contentArea']/div/div/a[@href='/archiva/admin/addRepository.action']" );
|
clickLinkWithText( "Add" );
|
||||||
addManagedRepository( "managedrepo1", "Managed Repository Sample 1" , getRepositoryDir() + "repository/" , "", "Maven 2.x Repository", "0 0 * * * ?", "", "" );
|
addManagedRepository( "managedrepo1", "Managed Repository Sample 1" , getRepositoryDir() + "repository/" , "", "Maven 2.x Repository", "0 0 * * * ?", "", "" );
|
||||||
clickButtonWithValue( "Save" );
|
clickButtonWithValue( "Save" );
|
||||||
assertTextPresent( "Managed Repository Sample 1" );
|
assertTextPresent( "Managed Repository Sample 1" );
|
||||||
|
@ -40,7 +40,7 @@ public class RepositoryTest
|
||||||
public void testAddManagedRepoInvalidValues()
|
public void testAddManagedRepoInvalidValues()
|
||||||
{
|
{
|
||||||
goToRepositoriesPage();
|
goToRepositoriesPage();
|
||||||
clickLinkWithLocator( "//div[@id='contentArea']/div/div/a[@href='/archiva/admin/addRepository.action']" );
|
clickLinkWithText( "Add" );
|
||||||
addManagedRepository( "", "" , "" , "", "Maven 2.x Repository", "", "", "" );
|
addManagedRepository( "", "" , "" , "", "Maven 2.x Repository", "", "", "" );
|
||||||
assertTextPresent( "You must enter a repository identifier." );
|
assertTextPresent( "You must enter a repository identifier." );
|
||||||
assertTextPresent( "You must enter a repository name." );
|
assertTextPresent( "You must enter a repository name." );
|
||||||
|
@ -105,7 +105,7 @@ public class RepositoryTest
|
||||||
@Test(dependsOnMethods = { "testAddRemoteRepoValidValues" } )
|
@Test(dependsOnMethods = { "testAddRemoteRepoValidValues" } )
|
||||||
public void testAddRemoteRepoNullValues()
|
public void testAddRemoteRepoNullValues()
|
||||||
{
|
{
|
||||||
clickLinkWithLocator( "//div[@id='contentArea']/div/div/a[@href='/archiva/admin/addRemoteRepository.action']" );
|
getSelenium().open( "/archiva/admin/addRemoteRepository.action" );
|
||||||
addRemoteRepository( "" , "" , "" , "" , "" , "" , "Maven 2.x Repository" );
|
addRemoteRepository( "" , "" , "" , "" , "" , "" , "Maven 2.x Repository" );
|
||||||
assertTextPresent( "You must enter a repository identifier." );
|
assertTextPresent( "You must enter a repository identifier." );
|
||||||
assertTextPresent( "You must enter a repository name." );
|
assertTextPresent( "You must enter a repository name." );
|
||||||
|
@ -136,7 +136,7 @@ public class RepositoryTest
|
||||||
@Test(dependsOnMethods = { "testDeleteManageRepo" } )
|
@Test(dependsOnMethods = { "testDeleteManageRepo" } )
|
||||||
public void testAddRemoteRepoValidValues()
|
public void testAddRemoteRepoValidValues()
|
||||||
{
|
{
|
||||||
clickLinkWithLocator( "//div[@id='contentArea']/div/div/a[@href='/archiva/admin/addRemoteRepository.action']" );
|
getSelenium().open( "/archiva/admin/addRemoteRepository.action" );
|
||||||
addRemoteRepository( "remoterepo" , "Remote Repository Sample" , "http://repository.codehaus.org/org/codehaus/mojo/" , "" , "" , "" , "Maven 2.x Repository" );
|
addRemoteRepository( "remoterepo" , "Remote Repository Sample" , "http://repository.codehaus.org/org/codehaus/mojo/" , "" , "" , "" , "Maven 2.x Repository" );
|
||||||
assertTextPresent( "Remote Repository Sample" );
|
assertTextPresent( "Remote Repository Sample" );
|
||||||
}
|
}
|
||||||
|
|
|
@ -513,7 +513,7 @@ public abstract class AbstractArchivaTest
|
||||||
}
|
}
|
||||||
|
|
||||||
setFieldValue( "artifact", path );
|
setFieldValue( "artifact", path );
|
||||||
setFieldValue( "repositoryId", repositoryId );
|
selectValue( "repositoryId", repositoryId );
|
||||||
|
|
||||||
clickButtonWithValue( "Submit" );
|
clickButtonWithValue( "Submit" );
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,7 +67,8 @@ public abstract class AbstractRepositoryTest
|
||||||
assertPage( "Apache Archiva \\ Admin: Delete Repository Group" );
|
assertPage( "Apache Archiva \\ Admin: Delete Repository Group" );
|
||||||
assertTextPresent( "WARNING: This operation can not be undone." );
|
assertTextPresent( "WARNING: This operation can not be undone." );
|
||||||
assertTextPresent( "Are you sure you want to delete the following repository group?" );
|
assertTextPresent( "Are you sure you want to delete the following repository group?" );
|
||||||
assertTextPresent( "ID: " + repositoryName );
|
assertTextPresent( "ID:" );
|
||||||
|
assertTextPresent( repositoryName );
|
||||||
assertButtonWithValuePresent( "Confirm" );
|
assertButtonWithValuePresent( "Confirm" );
|
||||||
assertButtonWithValuePresent( "Cancel" );
|
assertButtonWithValuePresent( "Cancel" );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue