From 754fde7c8cd4bb9da86a165e0f043fe179692109 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Mon, 13 Jul 2020 15:14:28 +1200 Subject: [PATCH] Use "not set" instead of "unselected" to see if that helps tests. --- lang/en/attendance.php | 2 +- tests/behat/extra_features.feature | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lang/en/attendance.php b/lang/en/attendance.php index 75c771d..60d3a61 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'] = 'unselected'; +$string['statusunselected'] = 'not set'; $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 75535bc..19c277e 100644 --- a/tests/behat/extra_features.feature +++ b/tests/behat/extra_features.feature @@ -24,8 +24,6 @@ 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 @@ -215,13 +213,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 "Test2 attendance" + And I follow "Test 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 "unselected" + And I set the field "Set status for" to "not set" # 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"