MDL-49324 behat: Use singleselect step to select user

This commit is contained in:
Rajesh Taneja 2016-02-25 09:49:24 +08:00
parent 316d6574e2
commit 2b9361cdda

View file

@ -47,7 +47,7 @@ Feature: Control the aggregation of the scales
And I set the following settings for grade item "Course 1": And I set the following settings for grade item "Course 1":
| Aggregation | <aggregation> | | Aggregation | <aggregation> |
And I follow "User report" And I follow "User report"
And I set the field "Select all or one user" to "Student 1" And I select "Student 1" from the "Select all or one user" singleselect
Then the following should exist in the "user-grade" table: Then the following should exist in the "user-grade" table:
| Grade item | Grade | Percentage | Contribution to course total | | Grade item | Grade | Percentage | Contribution to course total |
| Grade me | 10.00 | 10.00 % | <gradecontrib> | | Grade me | 10.00 | 10.00 % | <gradecontrib> |
@ -62,7 +62,7 @@ Feature: Control the aggregation of the scales
And I follow "Course 1" And I follow "Course 1"
And I navigate to "Grades" node in "Course administration" And I navigate to "Grades" node in "Course administration"
And I follow "User report" And I follow "User report"
And I set the field "Select all or one user" to "Student 1" And I select "Student 1" from the "Select all or one user" singleselect
And the following should exist in the "user-grade" table: And the following should exist in the "user-grade" table:
| Grade item | Grade | Percentage | Contribution to course total | | Grade item | Grade | Percentage | Contribution to course total |
| Grade me | 10.00 | 10.00 % | <gradecontrib2> | | Grade me | 10.00 | 10.00 % | <gradecontrib2> |