Browse Source

Merge pull request #102 from barrysspace/deprecated_behat_steps

mod_attendance: Fix #91 deprecated behat steps
MOODLE_28_STABLE
Dan Marsden 10 years ago
parent
commit
bedb41aef2
  1. 7
      tests/behat/attendance_mod.feature

7
tests/behat/attendance_mod.feature

@ -78,6 +78,7 @@ Feature: Teachers and Students can record session attendance
Then "Attendance report viewed" "link" should exist Then "Attendance report viewed" "link" should exist
# Dependency - selenium running with firefox profile with auto saving of txt files to $CFG->behat_download. # 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 @javascript @_file_download
Scenario: Export report includes id number, department and institution Scenario: Export report includes id number, department and institution
When I log in as "teacher1" 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 click on "id_submitbutton" "button"
And I follow "Continue" And I follow "Continue"
And I follow "Export" And I follow "Export"
Then the "id_ident_idnumber" checkbox should not be checked Then the field "id_ident_idnumber" matches value ""
And the "id_ident_institution" checkbox should not be checked And the field "id_ident_institution" matches value ""
And the "id_ident_department" checkbox should not be checked 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_idnumber" to "1"
And I set the field "id_ident_institution" to "1" And I set the field "id_ident_institution" to "1"
And I set the field "id_ident_department" to "1" And I set the field "id_ident_department" to "1"

Loading…
Cancel
Save