start fixing selenium tests, faster tests with no wait when testing javascript form validation

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1172551 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2011-09-19 10:09:04 +00:00
parent 290e716752
commit 4ff75a4b90
2 changed files with 5 additions and 5 deletions

View 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" );

View File

@ -72,6 +72,6 @@ public abstract class AbstractArtifactManagementTest
setFieldValue( "artifactId", artifactId );
setFieldValue( "version", version );
selectValue( "repositoryId", repositoryId );
clickButtonWithValue( "Submit" );
clickButtonWithValue( "Submit", false );
}
}