You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ga...@apache.org on 2008/12/16 05:59:06 UTC

svn commit: r726957 - /geronimo/server/trunk/testsuite/security-testsuite/test-security/src/test/java/org/apache/geronimo/testsuite/security/TestConsoleSecurity.java

Author: gawor
Date: Mon Dec 15 20:59:06 2008
New Revision: 726957

URL: http://svn.apache.org/viewvc?rev=726957&view=rev
Log:
wait for page to load

Modified:
    geronimo/server/trunk/testsuite/security-testsuite/test-security/src/test/java/org/apache/geronimo/testsuite/security/TestConsoleSecurity.java

Modified: geronimo/server/trunk/testsuite/security-testsuite/test-security/src/test/java/org/apache/geronimo/testsuite/security/TestConsoleSecurity.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/test-security/src/test/java/org/apache/geronimo/testsuite/security/TestConsoleSecurity.java?rev=726957&r1=726956&r2=726957&view=diff
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/test-security/src/test/java/org/apache/geronimo/testsuite/security/TestConsoleSecurity.java (original)
+++ geronimo/server/trunk/testsuite/security-testsuite/test-security/src/test/java/org/apache/geronimo/testsuite/security/TestConsoleSecurity.java Mon Dec 15 20:59:06 2008
@@ -28,6 +28,7 @@
     @Test
     public void testLogin() throws Exception {
         selenium.open("/console");
+        waitForPageLoad();
         assertFalse(selenium.isTextPresent("Deploy New"));
         selenium.type("j_username", "system");
         selenium.type("j_password", "manager");
@@ -68,6 +69,7 @@
     
     private void testFailure(String username, String password) throws Exception {
         selenium.open("/console");
+        waitForPageLoad();
         if (username != null) {
             selenium.type("j_username", username);
         }