]> source.dussan.org Git - archiva.git/commitdiff
wait a little in selenium test to see if fix test on jenkins @asf
authorOlivier Lamy <olamy@apache.org>
Tue, 17 Jan 2012 08:21:01 +0000 (08:21 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 17 Jan 2012 08:21:01 +0000 (08:21 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1232331 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js
archiva-modules/archiva-web/archiva-webapp-test-js/pom.xml
archiva-modules/archiva-web/archiva-webapp-test-js/src/test/testng/org/apache/archiva/web/test/parent/AbstractArchivaTest.java

index 86ae953e797d33a0d7dc716bd26305448513fcda..5e90e6e5ad93b75215843bc574e6410b39fdac10 100644 (file)
@@ -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();
             },
index b9d6f606e151b330c87c937caac2ef88ff59c7e1..0ae4a7538505ce2590fe813e5322b67b44cdc81a 100644 (file)
               <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>
index a785d221d5e43ad19bfc8d647d9d3103cdcf964d..f7e51cb4f92776bcb01d6b39980715138e71e0a4 100644 (file)
@@ -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" ) )
         {