continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r474404 - /maven/continuum/trunk/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/SchedulesPageTest.java
Date Mon, 13 Nov 2006 17:22:53 GMT
Author: evenisse
Date: Mon Nov 13 09:22:51 2006
New Revision: 474404

URL: http://svn.apache.org/viewvc?view=rev&rev=474404
Log:
Add some TODO

Modified:
    maven/continuum/trunk/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/SchedulesPageTest.java

Modified: maven/continuum/trunk/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/SchedulesPageTest.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/SchedulesPageTest.java?view=diff&rev=474404&r1=474403&r2=474404
==============================================================================
--- maven/continuum/trunk/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/SchedulesPageTest.java
(original)
+++ maven/continuum/trunk/continuum-webapp-test/src/test/it/org/apache/continuum/web/test/SchedulesPageTest.java
Mon Nov 13 09:22:51 2006
@@ -141,8 +141,6 @@
         // delete schedule after adding
         deleteSchedule( SCHEDULE_NAME );
 
-        assertDefaultSchedule();
-
         assertFalse( "Can not delete schedule",
                      getSelenium().isElementPresent( XPathExpressionUtil.matchTableRowOrderedValues(
columnValues ) ) );
     }
@@ -173,9 +171,7 @@
                        "2021", "8", "9", false );
 
         // after we save the schedule we should be brought back to the schedules page
-        assertPage( SCHEDULES_PAGE_TITLE );
-
-        assertDefaultSchedule();
+        assertInitialSchedulesPage();
 
         cronSchedule = "2 3 4 ? 6 7 2021";
 
@@ -229,6 +225,7 @@
 
         inputSchedule( fields, wait, valid );
 
+        //TODO: Fix text validation, we need real text and not a property in the screen
         assertFalse( "Name field improperly validated",
                      getSelenium().isElementPresent( "//tr/td[span='schedule.name.required']"
) );
         assertFalse( "Description field improperly validated",
@@ -260,11 +257,15 @@
     {
         assertPage( EDIT_SCHEDULE_PAGE_TITLE );
 
+        //TODO: assert error messages
+
         assertEditSchedulePageInputFields();
     }
 
     public void assertEditSchedulePageInputFields()
     {
+        //TODO: assert content
+
         assertElementPresent( "saveSchedule_id" );
         assertElementPresent( "id" );
         assertElementPresent( "saveSchedule_name" );
@@ -296,7 +297,7 @@
     public void deleteSchedule( String scheduleName )
     {
         // after we save the schedule we should be brought back to the schedules page
-        assertPage( SCHEDULES_PAGE_TITLE );
+        assertInitialSchedulesPage();
 
         String[] columnValues = {scheduleName};
 
@@ -305,11 +306,13 @@
 
         // deletion confirmation page
         assertPage( "Schedule Removal" );
+        //TODO: assert content
+        //TODO: assert schedule name is in deletion confirmation
 
         clickButtonWithValue( "Delete" );
 
         // after we confirm the deletion we should be brought back to the schedules page
-        assertPage( SCHEDULES_PAGE_TITLE );
+        assertInitialSchedulesPage();
     }
 
 
@@ -364,7 +367,7 @@
         if ( valid )
         {
             // after we save the schedule we should be brought back to the schedules page
       
-            assertPage( SCHEDULES_PAGE_TITLE );
+            assertInitialSchedulesPage();
         }
         else
         {



Mime
View raw message