Fix behat test with at-risk change to absentee
authorDan Marsden <dan@danmarsden.com>
Sun, 20 Aug 2017 23:33:59 +0000 (11:33 +1200)
committerDan Marsden <dan@danmarsden.com>
Sun, 20 Aug 2017 23:33:59 +0000 (11:33 +1200)
locallib.php
tests/behat/report.feature

index 52ae86e..275eb01 100644 (file)
@@ -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.
index 06edb2b..a6e5585 100644 (file)
@@ -152,7 +152,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
     Given I log in as "teacher1"
     And I am on "Course 1" course homepage
     And I follow "Attendance"
@@ -194,7 +194,7 @@ Feature: Visiting reports
     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