| Línea 12... |
Línea 12... |
| 12 |
| fullname | shortname | category |
|
12 |
| fullname | shortname | category |
|
| 13 |
| Course 1 | C1 | 0 |
|
13 |
| Course 1 | C1 | 0 |
|
| 14 |
And the following "course enrolments" exist:
|
14 |
And the following "course enrolments" exist:
|
| 15 |
| user | course | role |
|
15 |
| user | course | role |
|
| 16 |
| teacher1 | C1 | editingteacher |
|
16 |
| teacher1 | C1 | editingteacher |
|
| 17 |
And I log in as "teacher1"
|
17 |
And the following "core_badges > Badges" exist:
|
| 18 |
And I am on "Course 1" course homepage
|
18 |
| name | course | description | image | status | type |
|
| 19 |
# Issue badge 1 of 2
|
19 |
| Badge 1 | C1 | Badge 1 | badges/tests/behat/badge.png | active | 2 |
|
| 20 |
And I navigate to "Badges > Add a new badge" in current page administration
|
20 |
| Badge 2 | C1 | Badge 2 | badges/tests/behat/badge.png | active | 2 |
|
| 21 |
And I set the following fields to these values:
|
21 |
And the following "core_badges > Criterias" exist:
|
| 22 |
| id_name | Badge 1 |
|
22 |
| badge | role |
|
| 23 |
| id_description | Badge 1 |
|
23 |
| Badge 1 | editingteacher |
|
| 24 |
And I upload "blocks/badges/tests/fixtures/badge.png" file to "Image" filemanager
|
- |
|
| 25 |
And I press "Create badge"
|
24 |
| Badge 2 | editingteacher |
|
| 26 |
And I select "Manual issue by role" from the "Add badge criteria" singleselect
|
25 |
And I am on the "Course 1" "course" page logged in as "teacher1"
|
| 27 |
And I set the field "Teacher" to "1"
|
26 |
And I navigate to "Badges" in current page administration
|
| 28 |
And I press "Save"
|
27 |
And I follow "Badge 1"
|
| 29 |
And I press "Enable access"
|
- |
|
| 30 |
And I press "Continue"
|
- |
|
| 31 |
And I select "Recipients (0)" from the "jump" singleselect
|
28 |
And I select "Recipients (0)" from the "jump" singleselect
|
| 32 |
And I press "Award badge"
|
29 |
And I press "Award badge"
|
| 33 |
And I set the field "potentialrecipients[]" to "Teacher 1 (teacher1@example.com)"
|
30 |
And I set the field "potentialrecipients[]" to "Teacher 1 (teacher1@example.com)"
|
| 34 |
And I press "Award badge"
|
31 |
And I press "Award badge"
|
| 35 |
# Issue Badge 2 of 2
|
32 |
# Issue Badge 2 of 2
|
| 36 |
And I am on "Course 1" course homepage
|
33 |
And I am on "Course 1" course homepage
|
| 37 |
And I navigate to "Badges > Add a new badge" in current page administration
|
34 |
And I navigate to "Badges" in current page administration
|
| 38 |
And I set the following fields to these values:
|
- |
|
| 39 |
| id_name | Badge 2 |
|
- |
|
| 40 |
| id_description | Badge 2 |
|
- |
|
| 41 |
And I upload "blocks/badges/tests/fixtures/badge.png" file to "Image" filemanager
|
- |
|
| 42 |
And I press "Create badge"
|
- |
|
| 43 |
And I select "Manual issue by role" from the "Add badge criteria" singleselect
|
- |
|
| 44 |
And I set the field "Teacher" to "1"
|
- |
|
| 45 |
And I press "Save"
|
35 |
And I follow "Badge 2"
|
| 46 |
And I press "Enable access"
|
- |
|
| 47 |
And I press "Continue"
|
- |
|
| 48 |
And I select "Recipients (0)" from the "jump" singleselect
|
36 |
And I select "Recipients (0)" from the "jump" singleselect
|
| 49 |
And I press "Award badge"
|
37 |
And I press "Award badge"
|
| 50 |
And I set the field "potentialrecipients[]" to "Teacher 1 (teacher1@example.com)"
|
38 |
And I set the field "potentialrecipients[]" to "Teacher 1 (teacher1@example.com)"
|
| 51 |
And I press "Award badge"
|
39 |
And I press "Award badge"
|
| 52 |
And I log out
|
40 |
And I log out
|