From 6679545bef40908a1deec8295cebb5d6c35d8d04 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Mon, 13 Jul 2020 15:35:46 +1200 Subject: [PATCH] Revert "Use "not set" instead of "unselected" to see if that helps tests." This reverts commit 754fde7c8cd4bb9da86a165e0f043fe179692109. --- lang/en/attendance.php | 2 +- tests/behat/extra_features.feature | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lang/en/attendance.php b/lang/en/attendance.php index 60d3a61..75c771d 100644 --- a/lang/en/attendance.php +++ b/lang/en/attendance.php @@ -471,7 +471,7 @@ $string['statuses'] = 'Statuses'; $string['statusset'] = 'Status set {$a}'; $string['statussetsettings'] = 'Status set'; $string['statusall'] = 'all'; -$string['statusunselected'] = 'not set'; +$string['statusunselected'] = 'unselected'; $string['strftimedm'] = '%b %d'; $string['strftimedmy'] = '%d %b %Y'; $string['strftimedmyhm'] = '%d %b %Y %I.%M%p'; // Line added to allow multiple sessions in the same day. diff --git a/tests/behat/extra_features.feature b/tests/behat/extra_features.feature index 19c277e..75535bc 100644 --- a/tests/behat/extra_features.feature +++ b/tests/behat/extra_features.feature @@ -24,6 +24,8 @@ Feature: Test the various new features in the attendance module 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 add a "Attendance" to section "1" and I fill the form with: + | Name | Test2 attendance | And I log out Scenario: A teacher can create and update temporary users @@ -213,13 +215,13 @@ Feature: Test the various new features in the attendance module Scenario: A teacher can use the radio buttons to set attendance values for unselected users Given I log in as "teacher1" And I am on "Course 1" course homepage - And I follow "Test attendance" + And I follow "Test2 attendance" And I follow "Add" And I set the following fields to these values: | id_addmultiply | 0 | And I click on "submitbutton" "button" And I click on "Take attendance" "link" - And I set the field "Set status for" to "not set" + And I set the field "Set status for" to "unselected" # Set student 1 as present. And I click on "td.cell.c3 input" "css_element" in the "Student 1" "table_row" And I click on "setallstatuses" "field" in the ".takelist tbody td.c3" "css_element"