1 |
efrain |
1 |
@report @javascript @report_competency
|
|
|
2 |
Feature: See the competencies for an activity
|
|
|
3 |
As a competency grader
|
|
|
4 |
In order to perform mark all competencies for an activity
|
|
|
5 |
I need to see the competencies linked to one activity in the breakdown report.
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following lp "frameworks" exist:
|
|
|
9 |
| shortname | idnumber |
|
|
|
10 |
| Test-Framework | ID-FW1 |
|
|
|
11 |
And the following lp "competencies" exist:
|
|
|
12 |
| shortname | framework |
|
|
|
13 |
| Test-Comp1 | ID-FW1 |
|
|
|
14 |
| Test-Comp2 | ID-FW1 |
|
|
|
15 |
Given the following "courses" exist:
|
|
|
16 |
| shortname | fullname |
|
|
|
17 |
| C1 | Course 1 |
|
|
|
18 |
And the following "users" exist:
|
|
|
19 |
| username | firstname | lastname | email | idnumber | middlename | alternatename | firstnamephonetic | lastnamephonetic |
|
|
|
20 |
| student1 | Grainne | Beauchamp | student1@example.com | s1 | Ann | Jill | Gronya | Beecham |
|
|
|
21 |
| student2 | Niamh | Cholmondely | student2@example.com | s2 | Jane | Nina | Nee | Chumlee |
|
|
|
22 |
And the following "course enrolments" exist:
|
|
|
23 |
| user | course | role |
|
|
|
24 |
| student1 | C1 | student |
|
|
|
25 |
| student2 | C1 | student |
|
|
|
26 |
And the following "activities" exist:
|
|
|
27 |
| activity | name | intro | course | idnumber |
|
|
|
28 |
| page | PageName1 | PageDesc1 | C1 | PAGE1 |
|
|
|
29 |
And the following config values are set as admin:
|
|
|
30 |
| fullnamedisplay | firstname |
|
|
|
31 |
| alternativefullnameformat | middlename, alternatename, firstname, lastname |
|
|
|
32 |
And I log in as "admin"
|
|
|
33 |
And I am on site homepage
|
|
|
34 |
And I follow "Course 1"
|
|
|
35 |
And I navigate to "Competencies" in current page administration
|
|
|
36 |
And I press "Add competencies to course"
|
|
|
37 |
And "Competency picker" "dialogue" should be visible
|
|
|
38 |
And I select "Test-Comp1" of the competency tree
|
|
|
39 |
And I click on "Add" "button" in the "Competency picker" "dialogue"
|
|
|
40 |
And I press "Add competencies to course"
|
|
|
41 |
And "Competency picker" "dialogue" should be visible
|
|
|
42 |
And I select "Test-Comp2" of the competency tree
|
|
|
43 |
And I click on "Add" "button" in the "Competency picker" "dialogue"
|
|
|
44 |
And I am on the PageName1 "page activity editing" page
|
|
|
45 |
And I click on "Expand all" "link" in the "region-main" "region"
|
|
|
46 |
And I set the field "Course competencies" to "Test-Comp1"
|
|
|
47 |
And I press "Save and return to course"
|
|
|
48 |
|
|
|
49 |
@javascript
|
|
|
50 |
Scenario: Go to the competency breakdown report
|
|
|
51 |
When I navigate to "Reports" in current page administration
|
|
|
52 |
And I click on "Competency breakdown" "link"
|
|
|
53 |
And I set the field "Filter competencies by resource or activity" to "PageName1"
|
|
|
54 |
Then I should see "Test-Comp1"
|
|
|
55 |
And I should not see "Test-Comp2"
|
|
|
56 |
And I should see "Ann, Jill, Grainne, Beauchamp"
|
|
|
57 |
And I should see "Ann, Jill, Grainne, Beauchamp" in the ".form-autocomplete-selection" "css_element"
|
|
|
58 |
And I open the autocomplete suggestions list
|
|
|
59 |
And I should see "Jane, Nina, Niamh, Cholmondely" in the ".form-autocomplete-suggestions" "css_element"
|
|
|
60 |
And I click on "Not rated" "link"
|
|
|
61 |
And I click on "Rate" "button"
|
|
|
62 |
And I set the field "Rating" to "A"
|
|
|
63 |
And I click on "Rate" "button" in the ".competency-grader" "css_element"
|
|
|
64 |
And I click on "Close" "button" in the "User competency summary" "dialogue"
|
|
|
65 |
And I click on "PageName1" "autocomplete_selection"
|
|
|
66 |
And I should see "Test-Comp1"
|
|
|
67 |
And I should see "Test-Comp2"
|
|
|
68 |
|
|
|
69 |
@accessibility
|
|
|
70 |
Scenario: Evaluate the accessibility of the user competency summary dialogue
|
|
|
71 |
Given I navigate to "Reports" in current page administration
|
|
|
72 |
When I click on "Competency breakdown" "link"
|
|
|
73 |
And I click on "Not rated" "link"
|
|
|
74 |
And the page should meet accessibility standards
|