Browse Source

Behat fixes

MOODLE_29_STABLE
Dan Marsden 9 years ago
parent
commit
17d260cf13
  1. 5
      tests/behat/attendance_mod.feature
  2. 2
      tests/behat/extra_features.feature

5
tests/behat/attendance_mod.feature

@ -38,7 +38,8 @@ Feature: Teachers and Students can record session attendance
And I follow "Add"
And I set the field "Allow students to record own attendance" to "1"
And I set the following fields to these values:
| id_sestime_starthour | 23 |
| id_sestime_starthour | 22 |
| id_sestime_endhour | 23 |
And I click on "id_submitbutton" "button"
And I log out
When I log in as "student1"
@ -63,6 +64,7 @@ Feature: Teachers and Students can record session attendance
And I follow "Add"
And I set the following fields to these values:
| id_sestime_starthour | 01 |
| id_sestime_endhour | 02 |
And I click on "id_submitbutton" "button"
And I follow "Report"
And I follow "Low grade"
@ -82,6 +84,7 @@ Feature: Teachers and Students can record session attendance
And I follow "Add"
And I set the following fields to these values:
| id_sestime_starthour | 01 |
| id_sestime_endhour | 02 |
And I click on "id_submitbutton" "button"
And I follow "Export"
Then the field "id_ident_idnumber" matches value ""

2
tests/behat/extra_features.feature

@ -170,6 +170,7 @@ Feature: Test the various new features in the attendance module
| Status set | Status set 1 (P L E A) |
| id_sestime_starthour | 10 |
| id_sestime_startminute | 0 |
| id_sestime_endhour | 11 |
And I click on "submitbutton" "button"
And I follow "Add"
And I set the following fields to these values:
@ -177,6 +178,7 @@ Feature: Test the various new features in the attendance module
| Status set | Status set 2 (G O B) |
| id_sestime_starthour | 11 |
| id_sestime_startminute | 0 |
| id_sestime_endhour | 12 |
And I click on "submitbutton" "button"
When I click on "Take attendance" "link" in the "10:00" "table_row"

Loading…
Cancel
Save