Browse Source

Use "not set" instead of "unselected" to see if that helps tests.

nwp90-nwp90-allsessionsreport
Dan Marsden 5 years ago
parent
commit
754fde7c8c
  1. 2
      lang/en/attendance.php
  2. 6
      tests/behat/extra_features.feature

2
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.

6
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"

Loading…
Cancel
Save