Behat fixes
authorDan Marsden <dan@danmarsden.com>
Mon, 14 Mar 2016 22:19:35 +0000 (11:19 +1300)
committerDan Marsden <dan@danmarsden.com>
Mon, 14 Mar 2016 22:19:35 +0000 (11:19 +1300)
tests/behat/attendance_mod.feature
tests/behat/extra_features.feature

index 3c955bf..6e3018a 100644 (file)
@@ -38,7 +38,8 @@ Feature: Teachers and Students can record session attendance
         And I follow "Add"
         And I set the field "Allow students to record own attendance" to "1"
         And I set the following fields to these values:
-            | id_sestime_starthour | 23 |
+            | id_sestime_starthour | 22 |
+            | id_sestime_endhour   | 23 |
         And I click on "id_submitbutton" "button"
         And I log out
         When I log in as "student1"
@@ -63,6 +64,7 @@ Feature: Teachers and Students can record session attendance
         And I follow "Add"
         And I set the following fields to these values:
             | id_sestime_starthour | 01 |
+            | id_sestime_endhour   | 02 |
         And I click on "id_submitbutton" "button"
         And I follow "Report"
         And I follow "Low grade"
@@ -82,6 +84,7 @@ Feature: Teachers and Students can record session attendance
         And I follow "Add"
         And I set the following fields to these values:
             | id_sestime_starthour | 01 |
+            | id_sestime_endhour   | 02 |
         And I click on "id_submitbutton" "button"
         And I follow "Export"
         Then the field "id_ident_idnumber" matches value ""
index e4e7a5a..fe3a2cc 100644 (file)
@@ -166,17 +166,19 @@ Feature: Test the various new features in the attendance module
 
     And I follow "Add"
     And I set the following fields to these values:
-      | id_addmultiply           | 0                      |
-      | Status set           | Status set 1 (P L E A) |
+      | id_addmultiply            | 0                      |
+      | Status set                | Status set 1 (P L E A) |
       | id_sestime_starthour      | 10                     |
       | id_sestime_startminute    | 0                      |
+      | id_sestime_endhour        | 11 |
     And I click on "submitbutton" "button"
     And I follow "Add"
     And I set the following fields to these values:
-      | id_addmultiply | 0                    |
-      | Status set           | Status set 2 (G O B) |
+      | id_addmultiply            | 0                    |
+      | Status set                | Status set 2 (G O B) |
       | id_sestime_starthour      | 11                   |
       | id_sestime_startminute    | 0                    |
+      | id_sestime_endhour        | 12 |
     And I click on "submitbutton" "button"
 
     When I click on "Take attendance" "link" in the "10:00" "table_row"