From 17d260cf134346fcb486152a7f5564b9d54fcdfd Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Tue, 15 Mar 2016 11:19:35 +1300 Subject: [PATCH] Behat fixes --- tests/behat/attendance_mod.feature | 5 ++++- tests/behat/extra_features.feature | 10 ++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/tests/behat/attendance_mod.feature b/tests/behat/attendance_mod.feature index 3c955bf..6e3018a 100644 --- a/tests/behat/attendance_mod.feature +++ b/tests/behat/attendance_mod.feature @@ -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 "" diff --git a/tests/behat/extra_features.feature b/tests/behat/extra_features.feature index e4e7a5a..fe3a2cc 100644 --- a/tests/behat/extra_features.feature +++ b/tests/behat/extra_features.feature @@ -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"