$extrafields = get_extra_user_fields($this->context, $fields);
$fields = array_merge($fields, $extrafields);
- $userfields = user_picture::fields('u',$fields);
+ $userfields = user_picture::fields('u', $fields);
if (empty($this->pageparams->sort)) {
$this->pageparams->sort = ATT_SORT_DEFAULT;
$rows[] = $row;
-
foreach ($reportdata->users as $user) {
$row = new html_table_row();
$row->cells[] = $this->build_data_cell($this->user_picture($user));
| C1 | teacher1 | editingteacher | ##yesterday## |
And I log in as "teacher1"
- And I follow "Course 1"
- And I turn editing mode on
+ And I am on "Course 1" course homepage with editing mode on
And I follow "Add a block"
And I follow "Administration"
And I add a "Attendance" to section "1" and I fill the form with:
| Name | Attendance |
And I log out
And I log in as "student1"
- And I follow "Course 1"
+ And I am on "Course 1" course homepage
And I should see "Attendance"
And I log out
Scenario: Students can mark their own attendance
Given I log in as "teacher1"
- And I follow "Course 1"
+ And I am on "Course 1" course homepage
And I follow "Attendance"
And I follow "Add"
And I set the field "Allow students to record own attendance" to "1"
And I click on "id_submitbutton" "button"
And I log out
And I log in as "student1"
- And I follow "Course 1"
+ And I am on "Course 1" course homepage
And I follow "Attendance"
And I follow "Submit attendance"
And I set the field "Present" to "1"
And I should see "Self-recorded"
And I log out
When I log in as "teacher1"
- And I follow "Course 1"
+ And I am on "Course 1" course homepage
And I expand "Reports" node
And I follow "Logs"
And I click on "Get these logs" "button"
Scenario: Teachers can view low grade report and send a message
Given I log in as "teacher1"
- And I follow "Course 1"
+ And I am on "Course 1" course homepage
And I follow "Attendance"
And I follow "Add"
And I set the following fields to these values:
Scenario: Export report includes id number, department and institution
Given I log in as "teacher1"
- And I follow "Course 1"
+ And I am on "Course 1" course homepage
And I follow "Attendance"
And I follow "Add"
And I set the following fields to these values:
| C1 | teacher1 | editingteacher | ##yesterday## |
And I log in as "teacher1"
- And I follow "Course 1"
- And I turn editing mode on
+ And I am on "Course 1" course homepage with editing mode on
And I add the "Upcoming events" block
And I add a "Attendance" to section "1" and I fill the form with:
| Name | Test attendance |
Scenario: Calendar events can be created automatically with sessions creation
Given I log in as "teacher1"
- And I follow "Course 1"
+ And I am on "Course 1" course homepage
And I follow "Test attendance"
And I follow "Add session"
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 "Course 1"
+ And I am on "Course 1" course homepage
And I follow "Go to calendar"
And I should see "Test attendance"
And I log out
@javascript
Scenario: Modified default status set added to new attendance
Given I log in as "teacher1"
- And I follow "Course 1"
- And I turn editing mode on
+ And I am on "Course 1" course homepage with editing mode on
And I add a "Attendance" to section "1" and I fill the form with:
| Name | Attendance1 |
And I follow "Attendance1"
| C1 | student3 | student | ##yesterday## |
And I log in as "teacher1"
- And I follow "Course 1"
- And I turn editing mode on
+ And I am on "Course 1" course homepage with editing mode on
And I add a "Attendance" to section "1" and I fill the form with:
| Name | Test attendance |
And I log out
Scenario: A teacher can create and update temporary users
Given I log in as "teacher1"
- And I follow "Course 1"
+ And I am on "Course 1" course homepage
And I follow "Test attendance"
And I follow "Temporary users"
Scenario: A teacher can take attendance for temporary users
Given I log in as "teacher1"
- And I follow "Course 1"
+ And I am on "Course 1" course homepage
And I follow "Test attendance"
And I follow "Temporary users"
And I set the following fields to these values:
| Group2 | student3 |
And I log in as "teacher1"
- And I follow "Course 1"
+ And I am on "Course 1" course homepage
And I follow "Test attendance"
And I follow "Add"
And I set the following fields to these values:
Scenario: A teacher can create and use multiple status lists
Given I log in as "teacher1"
- And I follow "Course 1"
+ And I am on "Course 1" course homepage
And I follow "Test attendance"
And I follow "Status set"
And I set the field "jump" to "New set of statuses"
Scenario: A teacher can use the radio buttons to set attendance values for all users
Given I log in as "teacher1"
- And I follow "Course 1"
+ And I am on "Course 1" course homepage
And I follow "Test attendance"
And I follow "Add"
And I set the following fields to these values:
| C1 | teacher1 | editingteacher | ##yesterday## |
And I log in as "teacher1"
- And I follow "Course 1"
- And I turn editing mode on
+ And I am on "Course 1" course homepage with editing mode on
And I add a "Attendance" to section "1" and I fill the form with:
| Name | Attendancepreftest |
And I follow "Attendancepreftest"
| C1 | teacher1 | editingteacher | ##yesterday## |
And I log in as "teacher1"
- And I follow "Course 1"
- And I turn editing mode on
+ And I am on "Course 1" course homepage with editing mode on
And I add a "Attendance" to section "1" and I fill the form with:
| Name | Attendance |
And I follow "Attendance"
Scenario: Teacher takes attendance
Given I log in as "teacher1"
- And I follow "Course 1"
+ And I am on "Course 1" course homepage
And I follow "Attendance"
And I follow "Edit settings"
Then I set the following fields to these values:
Scenario: Teacher changes the maximum points in the attendance settings
Given I log in as "teacher1"
- And I follow "Course 1"
+ And I am on "Course 1" course homepage
And I follow "Attendance"
And I follow "Edit settings"
Then I set the following fields to these values:
| Group1 | student1 |
When I log in as "teacher1"
- And I follow "Course 1"
+ And I am on "Course 1" course homepage
And I follow "Attendance"
And I follow "Edit settings"
And I set the following fields to these values:
Scenario: Teacher visit summary report
Given I log in as "teacher1"
- And I follow "Course 1"
+ And I am on "Course 1" course homepage
And I follow "Attendance"
And I follow "Edit settings"
And I set the following fields to these values:
Scenario: Student visit user report
Given I log in as "teacher1"
- And I follow "Course 1"
+ And I am on "Course 1" course homepage
And I follow "Attendance"
And I follow "Edit settings"
Then I set the following fields to these values:
Then I log out
When I log in as "student1"
- And I follow "Course 1"
+ And I am on "Course 1" course homepage
And I follow "Attendance"
And I follow "All"