continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jzurb...@apache.org
Subject svn commit: r930235 - /continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/SetupSelenium.java
Date Fri, 02 Apr 2010 11:00:38 GMT
Author: jzurbano
Date: Fri Apr  2 11:00:38 2010
New Revision: 930235

URL: http://svn.apache.org/viewvc?rev=930235&view=rev
Log:
[CONTINUUM-2487] - Selenium tests fail if run at certain times crossing the 'on the hour'
default schedule trigger


Modified:
    continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/SetupSelenium.java

Modified: continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/SetupSelenium.java
URL: http://svn.apache.org/viewvc/continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/SetupSelenium.java?rev=930235&r1=930234&r2=930235&view=diff
==============================================================================
--- continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/SetupSelenium.java
(original)
+++ continuum/trunk/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/SetupSelenium.java
Fri Apr  2 11:00:38 2010
@@ -75,6 +75,7 @@ public class SetupSelenium
             assertAutenticatedPage( username );
             assertEditConfigurationPage();
             postAdminUserCreation();
+            disableDefaultSchedule();
             clickLinkWithText( "Logout" );
         }
     }
@@ -95,4 +96,16 @@ public class SetupSelenium
             submit();
         }
     }
-}
\ No newline at end of file
+    
+    private void disableDefaultSchedule()
+    {
+        clickLinkWithText( "Schedules" );
+        String xPath = "//preceding::td[text()='DEFAULT_SCHEDULE']//following::img[@alt='Edit']";
+        clickLinkWithXPath( xPath );
+        if ( isChecked( "saveSchedule_active" ) )
+        {
+            uncheckField( "saveSchedule_active" );
+        }
+        clickButtonWithValue( "Save" );
+    }
+}



Mime
View raw message