Browse Source

Fix behat test with at-risk change to absentee

MOODLE_32_STABLE
Dan Marsden 7 years ago
parent
commit
c75a060d65
  1. 2
      locallib.php
  2. 4
      tests/behat/report.feature

2
locallib.php

@ -713,7 +713,7 @@ SELECT a.id, a.course as courseid, c.fullname as coursename, atl.studentid AS us
}
/**
* Generates a list of users flagged at-risk.
* Generates a list of users flagged absent.
*
* @param array $courseids optional list of courses to return
* @param bool $allfornotify get notification list for scheduled task.

4
tests/behat/report.feature

@ -153,7 +153,7 @@ Feature: Visiting reports
And I log out
Scenario: Teacher visit summary report and at-risk report
Scenario: Teacher visit summary report and absentee report
When I log in as "teacher1"
And I follow "Course 1"
And I follow "Attendance"
@ -194,7 +194,7 @@ Feature: Visiting reports
And "50.0%" "text" should exist in the "Student 1" "table_row"
And "5 / 6" "text" should exist in the "Student 1" "table_row"
And "83.3%" "text" should exist in the "Student 1" "table_row"
And I follow "At-risk report"
And I follow "Absentee report"
And I should see "Student 1"
And I log out

Loading…
Cancel
Save