From f90ef5b8cf1c6f652e23ec0a635d97b0944ef9e3 Mon Sep 17 00:00:00 2001 From: Barry Oosthuizen Date: Wed, 27 May 2015 15:56:15 +0100 Subject: [PATCH] mod_attendance: Fix #91 deprecated behat steps --- tests/behat/attendance_mod.feature | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/behat/attendance_mod.feature b/tests/behat/attendance_mod.feature index 2926fd8..4ec96ed 100644 --- a/tests/behat/attendance_mod.feature +++ b/tests/behat/attendance_mod.feature @@ -78,6 +78,7 @@ Feature: Teachers and Students can record session attendance Then "Attendance report viewed" "link" should exist # Dependency - selenium running with firefox profile with auto saving of txt files to $CFG->behat_download. + # e.g. $CFG->behat_download = 'C:\\Users\\username\\Downloads\\'; @javascript @_file_download Scenario: Export report includes id number, department and institution When I log in as "teacher1" @@ -89,9 +90,9 @@ Feature: Teachers and Students can record session attendance And I click on "id_submitbutton" "button" And I follow "Continue" And I follow "Export" - Then the "id_ident_idnumber" checkbox should not be checked - And the "id_ident_institution" checkbox should not be checked - And the "id_ident_department" checkbox should not be checked + Then the field "id_ident_idnumber" matches value "" + And the field "id_ident_institution" matches value "" + And the field "id_ident_department" matches value "" And I set the field "id_ident_idnumber" to "1" And I set the field "id_ident_institution" to "1" And I set the field "id_ident_department" to "1"