mirror of https://github.com/apache/archiva.git
Trying another chrome fix
This commit is contained in:
parent
d915440a8c
commit
f470fdbe74
|
@ -21,6 +21,8 @@ package org.apache.archiva.web.test;
|
|||
|
||||
import org.apache.archiva.web.test.parent.AbstractArchivaTest;
|
||||
import org.junit.Test;
|
||||
import org.openqa.selenium.By;
|
||||
import org.openqa.selenium.WebElement;
|
||||
import org.openqa.selenium.support.ui.ExpectedConditions;
|
||||
import org.openqa.selenium.support.ui.WebDriverWait;
|
||||
|
||||
|
@ -35,4 +37,19 @@ public class ArchivaAdminTest
|
|||
WebDriverWait wait = new WebDriverWait(getWebDriver(), 30);
|
||||
wait.until(ExpectedConditions.titleContains("Apache Archiva"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInitialRepositories()
|
||||
{
|
||||
WebDriverWait wait = new WebDriverWait(getWebDriver(), 20);
|
||||
WebElement el;
|
||||
el = wait.until(ExpectedConditions.elementToBeClickable( By.id("menu-repositories-list-a")));
|
||||
tryClick( el, ExpectedConditions.presenceOfElementLocated( By.xpath("//table[@id='managed-repositories-table']//td[contains(text(),'internal')]") ),
|
||||
"Managed Repositories not activated");
|
||||
wait.until(ExpectedConditions.visibilityOfElementLocated( By.xpath("//table[@id='managed-repositories-table']//td[contains(text(),'snapshots')]") ));
|
||||
el = wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//a[@href='#remote-repositories-content']")));
|
||||
tryClick(el,ExpectedConditions.visibilityOfElementLocated(By.xpath("//table[@id='remote-repositories-table']//td[contains(text(),'central')]")),
|
||||
"Remote Repositories View not available");
|
||||
|
||||
}
|
||||
}
|
|
@ -47,7 +47,7 @@ public class RepositoryAdminTest
|
|||
@Test
|
||||
public void testManagedRepository()
|
||||
{
|
||||
login( getAdminUsername(), getAdminPassword() );
|
||||
// login( getAdminUsername(), getAdminPassword() );
|
||||
WebDriverWait wait = new WebDriverWait(getWebDriver(), 20);
|
||||
WebElement el;
|
||||
el = wait.until(ExpectedConditions.elementToBeClickable(By.id("menu-repositories-list-a")));
|
||||
|
|
Loading…
Reference in New Issue