mirror of
https://github.com/apache/archiva.git
synced 2025-02-21 17:35:19 +00:00
fix virtual repository test
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@899054 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
560d3e0ebc
commit
f6a631b7d5
@ -21,6 +21,7 @@
|
||||
|
||||
import org.apache.archiva.web.test.parent.AbstractRepositoryTest;
|
||||
import org.testng.annotations.Test;
|
||||
import org.testng.Assert;
|
||||
|
||||
@Test( groups = { "virtualrepository" }, dependsOnMethods = { "testWithCorrectUsernamePassword" } )
|
||||
public class VirtualRepositoryTest
|
||||
@ -37,14 +38,14 @@ public void testAddRepositoryGroupValidValue()
|
||||
{
|
||||
addRepositoryGroup( "testing" );
|
||||
//assertAddedRepositoryLink( "testing" );
|
||||
assertTextPresent( "testing" );
|
||||
Assert.assertEquals( getSelenium().getText( "//div[@id='contentArea']/div[2]/div/div[1]/p[1]" ), "testing" );
|
||||
}
|
||||
|
||||
@Test(dependsOnMethods = { "testAddRepositoryGroupValidValue" } )
|
||||
public void testAddRepositoryToRepositoryGroup()
|
||||
{
|
||||
addRepositoryToRepositoryGroup( "testing", "internal" );
|
||||
assertTextPresent( "internal" );
|
||||
Assert.assertEquals( getSelenium().getText( "//div[@id='contentArea']/div[2]/div/div[3]/div[2]/p[1]" ), "internal" );
|
||||
//clickLinkWithXPath( "/html/body/div[4]/div/div/div[2]/div/div/p[2]/a" );
|
||||
//getSelenium().goBack();
|
||||
}
|
||||
@ -55,7 +56,7 @@ public void testDeleteRepositoryOfRepositoryGroup()
|
||||
deleteRepositoryInRepositoryGroups();
|
||||
assertTextPresent( "Repository Groups" );
|
||||
assertTextNotPresent( "No Repository Groups Defined." );
|
||||
waitPage();
|
||||
Assert.assertFalse( getSelenium().isElementPresent( "//div[@id='contentArea']/div[2]/div/div[3]/div[2]/p[1]" ) );
|
||||
}
|
||||
|
||||
@Test(dependsOnMethods = { "testDeleteRepositoryOfRepositoryGroup" } )
|
||||
|
@ -80,12 +80,13 @@ public void addRepositoryToRepositoryGroup( String repositoryGroupName, String r
|
||||
|
||||
public void deleteRepositoryInRepositoryGroups()
|
||||
{
|
||||
goToRepositoryGroupsPage();
|
||||
getSelenium().click( "xpath=//div[@id='contentArea']/div[2]/div/div[3]/div[1]/a/img" );
|
||||
waitPage();
|
||||
}
|
||||
|
||||
public void deleteRepositoryGroup( String repositoryName )
|
||||
{
|
||||
//goToRepositoryGroupsPage();
|
||||
getSelenium().click( "xpath=//div[@id='contentArea']/div[2]/div/div[1]/div/a/img" );
|
||||
waitPage();
|
||||
assertDeleteRepositoryGroupPage( repositoryName );
|
||||
|
Loading…
x
Reference in New Issue
Block a user