mirror of https://github.com/apache/archiva.git
wait a little in selenium test to see if fix test on jenkins @asf
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1232331 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2f5c8c26fd
commit
8a4c361fd8
|
@ -74,7 +74,6 @@ $(function() {
|
|||
this.managedRepositoriesViewModel = managedRepositoriesViewModel;
|
||||
this.update = update;
|
||||
var self = this;
|
||||
var currentManagedRepository = this.managedRepository;
|
||||
save=function(){
|
||||
var valid = $("#main-content #managed-repository-edit-form").valid();
|
||||
if (valid==false) {
|
||||
|
@ -106,12 +105,12 @@ $(function() {
|
|||
{
|
||||
type: "POST",
|
||||
contentType: 'application/json',
|
||||
data: "{\"managedRepository\": " + ko.toJSON(currentManagedRepository)+"}",
|
||||
data: "{\"managedRepository\": " + ko.toJSON(self.managedRepository)+"}",
|
||||
dataType: 'json',
|
||||
success: function(data) {
|
||||
//var repo = mapManagedRepository(data);
|
||||
//$.log("data:"+repo.name);
|
||||
self.managedRepositoriesViewModel.managedRepositories.push(currentManagedRepository);
|
||||
//$.log("data:"+data.responseText);
|
||||
self.managedRepositoriesViewModel.managedRepositories.push(self.managedRepository);
|
||||
displaySuccessMessage($.i18n.prop('managedrepository.added'));
|
||||
activateManagedRepositoriesGridTab();
|
||||
},
|
||||
|
|
|
@ -219,20 +219,11 @@
|
|||
<goal>test</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<systemProperties>
|
||||
<property>
|
||||
<name>browser</name>
|
||||
<value>${selenium.browser}</value>
|
||||
</property>
|
||||
<property>
|
||||
<name>baseUrl</name>
|
||||
<value>${baseUrl}</value>
|
||||
</property>
|
||||
<property>
|
||||
<name>maxWaitTimeInMs</name>
|
||||
<value>${maxWaitTimeInMs}</value>
|
||||
</property>
|
||||
</systemProperties>
|
||||
<systemPropertyVariables>
|
||||
<browser>${selenium.browser}</browser>
|
||||
<baseUrl>${baseUrl}</baseUrl>
|
||||
<maxWaitTimeInMs>${maxWaitTimeInMs}</maxWaitTimeInMs>
|
||||
</systemPropertyVariables>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
|
|
|
@ -102,6 +102,7 @@ public abstract class AbstractArchivaTest
|
|||
public void goToLoginPage()
|
||||
{
|
||||
getSelenium().open( baseUrl );
|
||||
waitPage();
|
||||
// are we already logged in ?
|
||||
if ( isElementVisible( "logout-link" ) ) //isElementPresent( "logoutLink" ) )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue