Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 15... Línea 15...
15
      | user | course | role |
15
      | user | course | role |
16
      | teacher1 | C1 | editingteacher |
16
      | teacher1 | C1 | editingteacher |
17
    And the following "blocks" exist:
17
    And the following "blocks" exist:
18
      | blockname  | contextlevel | reference | pagetypepattern | defaultregion |
18
      | blockname  | contextlevel | reference | pagetypepattern | defaultregion |
19
      | badges     | System       | 1         | my-index        | side-post     |
19
      | badges     | System       | 1         | my-index        | side-post     |
20
    And I log in as "teacher1"
20
    And the following "core_badges > Badge" exists:
21
    And I am on "Course 1" course homepage
21
      | name        | Badge 1                      |
22
    # Issue badge 1 of 2
22
      | course      | C1                           |
23
    And I navigate to "Badges > Add a new badge" in current page administration
23
      | description | Badge 1                      |
24
    And I set the following fields to these values:
24
      | image       | badges/tests/behat/badge.png |
25
      | id_name | Badge 1 |
25
      | status      | active                       |
26
      | id_description | Badge 1 |
26
      | type        | 2                            |
27
    And I upload "blocks/badges/tests/fixtures/badge.png" file to "Image" filemanager
27
    And the following "core_badges > Criteria" exists:
28
    And I press "Create badge"
28
      | badge  | Badge 1       |
29
    And I select "Manual issue by role" from the "Add badge criteria" singleselect
-
 
30
    And I set the field "Teacher" to "1"
29
      | role   | editingteacher |
31
    And I press "Save"
30
    And I am on the "Course 1" "course" page logged in as "teacher1"
32
    And I press "Enable access"
31
    And I navigate to "Badges" in current page administration
33
    And I press "Continue"
32
    And I follow "Badge 1"
34
    And I select "Recipients (0)" from the "jump" singleselect
33
    And I select "Recipients (0)" from the "jump" singleselect
35
    And I press "Award badge"
34
    And I press "Award badge"
36
    And I set the field "potentialrecipients[]" to "Teacher 1 (teacher1@example.com)"
35
    And I set the field "potentialrecipients[]" to "Teacher 1 (teacher1@example.com)"
37
    And I press "Award badge"
36
    And I press "Award badge"
38
    And I log out
37
    And I log out