| C1 | student1 | student | ##yesterday## |
| C1 | teacher1 | editingteacher | ##yesterday## |
- When I log in as "teacher1"
+ And I log in as "teacher1"
And I follow "Course 1"
And I turn editing mode on
And I follow "Add a block"
And I log out
And I log in as "student1"
And I follow "Course 1"
- Then I should see "Attendance"
+ And I should see "Attendance"
And I log out
Scenario: Students can mark their own attendance
- When I log in as "teacher1"
+ Given I log in as "teacher1"
And I follow "Course 1"
And I follow "Attendance"
And I follow "Add"
| id_sestime_endhour | 23 |
And I click on "id_submitbutton" "button"
And I log out
- When I log in as "student1"
+ And I log in as "student1"
And I follow "Course 1"
And I follow "Attendance"
And I follow "Submit attendance"
And I set the field "Present" to "1"
And I press "Save changes"
- Then I should see "Self-recorded"
+ And I should see "Self-recorded"
And I log out
When I log in as "teacher1"
And I follow "Course 1"
Then "Attendance taken by student" "link" should exist
Scenario: Teachers can view low grade report and send a message
- When I log in as "teacher1"
+ Given I log in as "teacher1"
And I follow "Course 1"
And I follow "Attendance"
And I follow "Add"
And I follow "Low grade"
And I set the field "cb_selector" to "1"
And I click on "Send a message" "button"
- Then I should see "Message body"
+ And I should see "Message body"
And I should see "student1@asd.com"
And I follow "Course 1"
And I expand "Reports" node
Then "Attendance report viewed" "link" should exist
Scenario: Export report includes id number, department and institution
- When I log in as "teacher1"
+ Given I log in as "teacher1"
And I follow "Course 1"
And I follow "Attendance"
And I follow "Add"
And I log out
Scenario: Calendar events can be created automatically with sessions creation
- When I log in as "teacher1"
+ Given I log in as "teacher1"
And I follow "Course 1"
And I follow "Test attendance"
And I follow "Add session"
And I click on "id_submitbutton" "button"
And I follow "Course 1"
And I follow "Go to calendar"
- Then I should see "Test attendance"
+ And I should see "Test attendance"
And I log out
And I log in as "student1"
And I follow "Go to calendar"
And I log out
Scenario: Teacher takes attendance
- When I log in as "teacher1"
+ Given I log in as "teacher1"
And I follow "Course 1"
And I follow "Attendance"
And I follow "Edit settings"
And I log out
Scenario: Teacher changes the maximum points in the attendance settings
- When I log in as "teacher1"
+ Given I log in as "teacher1"
And I follow "Course 1"
And I follow "Attendance"
And I follow "Edit settings"
And I log out
Scenario: Teacher visit summary report
- When I log in as "teacher1"
+ Given I log in as "teacher1"
And I follow "Course 1"
And I follow "Attendance"
And I follow "Edit settings"
And I log out
Scenario: Student visit user report
- When I log in as "teacher1"
+ Given I log in as "teacher1"
And I follow "Course 1"
And I follow "Attendance"
And I follow "Edit settings"