|
|
@ -17,9 +17,9 @@ Feature: Teachers and Students can record session attendance |
|
|
|
| fullname | shortname | summary | category | |
|
|
|
| Course 1 | C101 | Prove the attendance activity works | 0 | |
|
|
|
And the following "users" exist: |
|
|
|
| username | firstname | lastname | email | |
|
|
|
| student1 | Sam | Student | student1@asd.com | |
|
|
|
| teacher1 | Teacher | One | teacher1@asd.com | |
|
|
|
| username | firstname | lastname | email | idnumber | department | institution | |
|
|
|
| student1 | Sam | Student | student1@asd.com | 1234 | computer science | University of Nottingham | |
|
|
|
| teacher1 | Teacher | One | teacher1@asd.com | 5678 | computer science | University of Nottingham | |
|
|
|
And the following "course enrolments" exist: |
|
|
|
| user | course | role | |
|
|
|
| student1 | C101 | student | |
|
|
@ -77,11 +77,29 @@ Feature: Teachers and Students can record session attendance |
|
|
|
And I click on "Get these logs" "button" |
|
|
|
Then "attendance report viewed" "link" should exist |
|
|
|
|
|
|
|
Scenario: Export report id number, department and institution are unchecked by default |
|
|
|
# Dependency - selenium running with firefox profile with auto saving of txt files to $CFG->behat_download. |
|
|
|
@javascript @ignore |
|
|
|
Scenario: Export report includes id number, department and institution |
|
|
|
When I log in as "teacher1" |
|
|
|
And I follow "Course 1" |
|
|
|
And I follow "Attendance" |
|
|
|
And I follow "Add" |
|
|
|
And I set the following fields to these values: |
|
|
|
| id_sessiondate_hour | 01 | |
|
|
|
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 |
|
|
|
And I check "id_ident_idnumber" |
|
|
|
And I check "id_ident_institution" |
|
|
|
And I check "id_ident_department" |
|
|
|
And I set the following fields to these values: |
|
|
|
| format | Download in text format | |
|
|
|
And I click on "OK" "button" |
|
|
|
Then attendance export file is ok |
|
|
|
And I should see "ID number" as "1234" in the file |
|
|
|
And I should see "Department" as "computer science" in the file |
|
|
|
And I should see "Institution" as "University of Nottingham" in the file |
|
|
|
|
|
|
|