From 380d49a641a27c8d6a83441d66164c02ed47b52a Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Fri, 20 Nov 2015 11:50:29 +1300 Subject: [PATCH] Fix behat test for Teachers can view low grade report and send a message --- renderer.php | 2 +- tests/behat/attendance_mod.feature | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/renderer.php b/renderer.php index 26a3d1a..fad4694 100644 --- a/renderer.php +++ b/renderer.php @@ -896,7 +896,7 @@ class mod_attendance_renderer extends plugin_renderer_base { } if ($bulkmessagecapability) { // Create the checkbox for bulk messaging. - $row->cells[] = html_writer::checkbox('user'.$user->id, 'on', false); + $row->cells[] = html_writer::checkbox('user'.$user->id, 'on', false, '', array('class' => 'attendancesesscheckbox')); } $table->data[] = $row; diff --git a/tests/behat/attendance_mod.feature b/tests/behat/attendance_mod.feature index 8fbe1c4..9b7641a 100644 --- a/tests/behat/attendance_mod.feature +++ b/tests/behat/attendance_mod.feature @@ -66,7 +66,7 @@ Feature: Teachers and Students can record session attendance And I click on "id_submitbutton" "button" And I follow "Report" And I follow "Low grade" - And I set the field "user3" to "1" + And I set the field "cbselector" to "1" And I click on "Send a message" "button" Then I should see "Message body" And I should see "student1@asd.com"