[MRM-1323] run tests with applet disabled to avoid warnings popping up

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@918745 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2010-03-03 22:42:46 +00:00
parent 1dc20b01ac
commit 3b18981b51
4 changed files with 7 additions and 7 deletions

View File

@ -13,10 +13,5 @@ The Cargo installations are stored outside of target to avoid multiple downloads
To remove the Cargo installations and re-download them next run, use: To remove the Cargo installations and re-download them next run, use:
- mvn -Pclean-cargo clean - mvn -Pclean-cargo clean
The scripts cannot be run totally unattended. The following will fail if the dialog box that appears
when the applet is run is not approved:
testFindArtifactNullValues(org.apache.archiva.web.test.FindArtifactTest)
testFindArtifactUsingChecksum(org.apache.archiva.web.test.FindArtifactTest)
Run Selenium tests in src/test/it with Maven and JUnit Run Selenium tests in src/test/it with Maven and JUnit
- mvn clean install -f junit-pom.xml - mvn clean install -f junit-pom.xml

View File

@ -1,3 +1,8 @@
<configuration> <configuration>
<localRepository></localRepository> <localRepository></localRepository>
<webapp>
<ui>
<appletFindEnabled>false</appletFindEnabled>
</ui>
</webapp>
</configuration> </configuration>

View File

@ -40,4 +40,6 @@ public class FindArtifactTest
clickButtonWithValue( "Search" ); clickButtonWithValue( "Search" );
assertTextPresent( "No results found" ); assertTextPresent( "No results found" );
} }
// TODO: test using file upload on Firefox versions that support getAsBinary (ie, no applet)
} }

View File

@ -418,11 +418,9 @@ public abstract class AbstractArchivaTest
assertPage( "Apache Archiva \\ Find Artifact" ); assertPage( "Apache Archiva \\ Find Artifact" );
assertTextPresent( "Find Artifact" ); assertTextPresent( "Find Artifact" );
assertTextPresent( "Search for:" ); assertTextPresent( "Search for:" );
assertElementPresent( "f" );
assertTextPresent( "Checksum:" ); assertTextPresent( "Checksum:" );
assertElementPresent( "q" ); assertElementPresent( "q" );
assertButtonWithValuePresent( "Search" ); assertButtonWithValuePresent( "Search" );
assertTextPresent( "This allows you to search the repository using the checksum of an artifact that you are trying to identify. You can either specify the checksum to look for directly, or scan a local artifact file." );
} }
//Appearance //Appearance