]> source.dussan.org Git - archiva.git/commitdiff
start fixing selenium tests, faster tests with no wait when testing javascript form...
authorOlivier Lamy <olamy@apache.org>
Mon, 19 Sep 2011 10:09:04 +0000 (10:09 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 19 Sep 2011 10:09:04 +0000 (10:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1172551 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/ArtifactManagementTest.java
archiva-modules/archiva-web/archiva-webapp-test/src/test/testng/org/apache/archiva/web/test/parent/AbstractArtifactManagementTest.java

index 7ce6c57bbd16b36cfacd6c93f4e5e468f9f16c37..d22b74d236beef8dc5e446937978c34dc066ffd1 100644 (file)
@@ -27,13 +27,13 @@ public class ArtifactManagementTest
     extends AbstractArtifactManagementTest
 {
 
-    @Test( alwaysRun = true )
+    @Test( alwaysRun = true, dependsOnGroups = "about")
     public void testAddArtifactNullValues()
     {
         goToAddArtifactPage();
-        clickButtonWithValue( "Submit" );
-        assertTextPresent( "Please add a file to upload." );
-        assertTextPresent( "Invalid version." );
+        clickButtonWithValue( "Submit", false );
+        //assertTextPresent( "Please add a file to upload." );
+        assertTextPresent( "You must enter a version." );
         assertTextPresent( "You must enter a groupId." );
         assertTextPresent( "You must enter an artifactId." );
         assertTextPresent( "You must enter a version" );
index 31c1a1fcf51da0260133e33f2a62158a048dda76..1b373f650beb9fa084fd4acc53e8078369a1d607 100644 (file)
@@ -72,6 +72,6 @@ public abstract class AbstractArtifactManagementTest
         setFieldValue( "artifactId", artifactId );
         setFieldValue( "version", version );
         selectValue( "repositoryId", repositoryId );
-        clickButtonWithValue( "Submit" );
+        clickButtonWithValue( "Submit", false );
     }
 }