| 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 |
| user1 | C1 | student |
|
16 |
| user1 | C1 | student |
|
| 17 |
And the following lp "frameworks" exist:
|
17 |
And the following "core_competency > frameworks" exist:
|
| 18 |
| shortname | idnumber |
|
18 |
| shortname | idnumber |
|
| 19 |
| Framework 1 | sc-y-2 |
|
19 |
| Framework 1 | sc-y-2 |
|
| 20 |
And the following lp "competencies" exist:
|
20 |
And the following "core_competency > competencies" exist:
|
| 21 |
| shortname | framework |
|
21 |
| shortname | competencyframework |
|
| 22 |
| comp1 | sc-y-2 |
|
22 |
| comp1 | sc-y-2 |
|
| 23 |
| comp2 | sc-y-2 |
|
23 |
| comp2 | sc-y-2 |
|
| 24 |
And I log in as "admin"
|
24 |
And I log in as "admin"
|
| Línea 25... |
Línea 25... |
| 25 |
|
25 |
|
| 26 |
@javascript
|
26 |
@javascript
|
| 27 |
Scenario: Award badge for completing a competency in a course
|
27 |
Scenario: Award badge for completing a competency in a course
|
| Línea 45... |
Línea 45... |
| 45 |
And I click on "Save changes" "button" in the "Configure course competencies" "dialogue"
|
45 |
And I click on "Save changes" "button" in the "Configure course competencies" "dialogue"
|
| 46 |
# Add a badge to the course
|
46 |
# Add a badge to the course
|
| 47 |
And I am on "Course 1" course homepage
|
47 |
And I am on "Course 1" course homepage
|
| 48 |
And I change window size to "large"
|
48 |
And I change window size to "large"
|
| 49 |
And I navigate to "Badges" in current page administration
|
49 |
And I navigate to "Badges" in current page administration
|
| 50 |
And I press "Manage badges"
|
- |
|
| 51 |
And I follow "Course Badge"
|
50 |
And I follow "Course Badge"
|
| 52 |
And I select "Criteria" from the "jump" singleselect
|
51 |
And I select "Criteria" from the "jump" singleselect
|
| 53 |
# Set the competency as a criteria for the badge
|
52 |
# Set the competency as a criteria for the badge
|
| 54 |
And I set the field "type" to "Competencies"
|
53 |
And I set the field "type" to "Competencies"
|
| 55 |
When I open the autocomplete suggestions list
|
54 |
When I open the autocomplete suggestions list
|
| Línea 57... |
Línea 56... |
| 57 |
And I wait until the page is ready
|
56 |
And I wait until the page is ready
|
| 58 |
And I press "Save"
|
57 |
And I press "Save"
|
| 59 |
And I wait until the page is ready
|
58 |
And I wait until the page is ready
|
| 60 |
# Enable the badge
|
59 |
# Enable the badge
|
| 61 |
And I press "Enable access"
|
60 |
And I press "Enable access"
|
| 62 |
And I press "Continue"
|
61 |
And I click on "Enable" "button" in the "Confirm" "dialogue"
|
| 63 |
# Rate the competency in the course
|
62 |
# Rate the competency in the course
|
| 64 |
And I am on "Course 1" course homepage
|
63 |
And I am on "Course 1" course homepage
|
| 65 |
And I navigate to "Competencies" in current page administration
|
64 |
And I navigate to "Competencies" in current page administration
|
| 66 |
And I click on "comp1" "link" in the "[data-region='coursecompetencies']" "css_element"
|
65 |
And I click on "comp1" "link" in the "[data-region='coursecompetencies']" "css_element"
|
| 67 |
And I press "Rate"
|
66 |
And I press "Rate"
|
| Línea 110... |
Línea 109... |
| 110 |
And I wait until the page is ready
|
109 |
And I wait until the page is ready
|
| 111 |
And I press "Save"
|
110 |
And I press "Save"
|
| 112 |
# Enable the badge
|
111 |
# Enable the badge
|
| 113 |
And I wait until the page is ready
|
112 |
And I wait until the page is ready
|
| 114 |
And I press "Enable access"
|
113 |
And I press "Enable access"
|
| 115 |
And I press "Continue"
|
114 |
And I click on "Enable" "button" in the "Confirm" "dialogue"
|
| 116 |
# Rate the competency in the course
|
115 |
# Rate the competency in the course
|
| 117 |
And I am on "Course 1" course homepage
|
116 |
And I am on "Course 1" course homepage
|
| 118 |
And I navigate to "Competencies" in current page administration
|
117 |
And I navigate to "Competencies" in current page administration
|
| 119 |
And I click on "comp1" "link" in the "[data-region='coursecompetencies']" "css_element"
|
118 |
And I click on "comp1" "link" in the "[data-region='coursecompetencies']" "css_element"
|
| 120 |
And I press "Rate"
|
119 |
And I press "Rate"
|
| Línea 165... |
Línea 164... |
| 165 |
And I click on "All of the selected competencies have been completed" "radio"
|
164 |
And I click on "All of the selected competencies have been completed" "radio"
|
| 166 |
And I press "Save"
|
165 |
And I press "Save"
|
| 167 |
# Enable the badge
|
166 |
# Enable the badge
|
| 168 |
And I wait until the page is ready
|
167 |
And I wait until the page is ready
|
| 169 |
And I press "Enable access"
|
168 |
And I press "Enable access"
|
| 170 |
And I press "Continue"
|
169 |
And I click on "Enable" "button" in the "Confirm" "dialogue"
|
| 171 |
# Rate the competency in the course
|
170 |
# Rate the competency in the course
|
| 172 |
And I am on "Course 1" course homepage
|
171 |
And I am on "Course 1" course homepage
|
| 173 |
And I navigate to "Competencies" in current page administration
|
172 |
And I navigate to "Competencies" in current page administration
|
| 174 |
And I click on "comp1" "link" in the "[data-region='coursecompetencies']" "css_element"
|
173 |
And I click on "comp1" "link" in the "[data-region='coursecompetencies']" "css_element"
|
| 175 |
And I press "Rate"
|
174 |
And I press "Rate"
|