Browse Source

Fixed deprecated step "I check" for 2.7

MOODLE_27_STABLE
Tim Lock 10 years ago
parent
commit
9bc36da91a
  1. 12
      tests/behat/attendance_mod.feature

12
tests/behat/attendance_mod.feature

@ -36,7 +36,7 @@ Feature: Teachers and Students can record session attendance
And I follow "Course 1" And I follow "Course 1"
And I follow "Attendance" And I follow "Attendance"
And I follow "Add" And I follow "Add"
And I check "Allow students to record own attendance" And I set the field "Allow students to record own attendance" to "1"
And I set the following fields to these values: And I set the following fields to these values:
| id_sessiondate_hour | 23 | | id_sessiondate_hour | 23 |
And I click on "id_submitbutton" "button" And I click on "id_submitbutton" "button"
@ -46,7 +46,7 @@ Feature: Teachers and Students can record session attendance
And I follow "Course 1" And I follow "Course 1"
And I follow "Attendance" And I follow "Attendance"
And I follow "Submit attendance" And I follow "Submit attendance"
And I check "Present" And I set the field "Present" to "1"
And I press "Save changes" And I press "Save changes"
Then I should see "Self-recorded" Then I should see "Self-recorded"
And I log out And I log out
@ -68,7 +68,7 @@ Feature: Teachers and Students can record session attendance
And I follow "Continue" And I follow "Continue"
And I follow "Report" And I follow "Report"
And I follow "Low grade" And I follow "Low grade"
And I check "user3" And I set the field "user3" to "1"
And I click on "Send a message" "button" And I click on "Send a message" "button"
Then I should see "Message body" Then I should see "Message body"
And I should see "student1@asd.com" And I should see "student1@asd.com"
@ -92,9 +92,9 @@ Feature: Teachers and Students can record session attendance
Then the "id_ident_idnumber" checkbox should not be checked Then the "id_ident_idnumber" checkbox should not be checked
And the "id_ident_institution" checkbox should not be checked And the "id_ident_institution" checkbox should not be checked
And the "id_ident_department" checkbox should not be checked And the "id_ident_department" checkbox should not be checked
And I check "id_ident_idnumber" And I set the field "id_ident_idnumber" to "1"
And I check "id_ident_institution" And I set the field "id_ident_institution" to "1"
And I check "id_ident_department" And I set the field "id_ident_department" to "1"
And I set the following fields to these values: And I set the following fields to these values:
| format | Download in text format | | format | Download in text format |
And I click on "OK" "button" And I click on "OK" "button"

Loading…
Cancel
Save