1 |
efrain |
1 |
@tool @javascript @tool_lp @tool_lp_user_evidence_comp_link
|
|
|
2 |
Feature: Manage competencies linked to evidence of prior learning
|
|
|
3 |
To link or unlink competency to evidence of prior learning
|
|
|
4 |
As learning plan admin
|
|
|
5 |
I need to link and unlink competencies from evidence of prior learning
|
|
|
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 |
And the following lp "plans" exist:
|
|
|
16 |
| name | user | description |
|
|
|
17 |
| Test-Plan | admin | Plan description |
|
|
|
18 |
And the following lp "plancompetencies" exist:
|
|
|
19 |
| plan | competency |
|
|
|
20 |
| Test-Plan | Test-Comp1 |
|
|
|
21 |
| Test-Plan | Test-Comp2 |
|
|
|
22 |
And the following lp "userevidence" exist:
|
|
|
23 |
| name | description | user |
|
|
|
24 |
| Test-Evidence | Description evidence | admin |
|
|
|
25 |
When I log in as "admin"
|
|
|
26 |
And I follow "Profile" in the user menu
|
|
|
27 |
And I follow "Learning plans"
|
|
|
28 |
Then I should see "Evidence of prior learning"
|
|
|
29 |
|
|
|
30 |
Scenario: Link competency to evidence of prior learning from page
|
|
|
31 |
Given I follow "Evidence of prior learning"
|
|
|
32 |
And I should see "List of evidence"
|
|
|
33 |
And I should see "Test-Evidence"
|
|
|
34 |
And I click on "Test-Evidence" "link"
|
|
|
35 |
And I should see "Linked competencies"
|
|
|
36 |
And I press "Link competencies"
|
|
|
37 |
And "Competency picker" "dialogue" should be visible
|
|
|
38 |
And I select "Test-Comp1" of the competency tree
|
|
|
39 |
When I click on "Add" "button" in the "Competency picker" "dialogue"
|
|
|
40 |
Then "Test-Comp1" "table_row" should exist
|
|
|
41 |
|
|
|
42 |
Scenario: Link competency to evidence of prior learning from list
|
|
|
43 |
Given I follow "Evidence of prior learning"
|
|
|
44 |
And I change window size to "large"
|
|
|
45 |
And I should see "List of evidence"
|
|
|
46 |
And I should see "Test-Evidence"
|
|
|
47 |
And I click on "Link" of edit menu in the "Test-Evidence" row
|
|
|
48 |
And "Competency picker" "dialogue" should be visible
|
|
|
49 |
And I select "Test-Comp2" of the competency tree
|
|
|
50 |
When I click on "Add" "button" in the "Competency picker" "dialogue"
|
|
|
51 |
Then "Test-Comp2" "table_row" should exist
|
|
|
52 |
|
|
|
53 |
Scenario: Unlink competency from evidence of prior learning
|
|
|
54 |
Given the following lp "userevidencecompetencies" exist:
|
|
|
55 |
| userevidence | competency |
|
|
|
56 |
| Test-Evidence | Test-Comp1 |
|
|
|
57 |
| Test-Evidence | Test-Comp2 |
|
|
|
58 |
Given the following lp "usercompetencies" exist:
|
|
|
59 |
| user | competency |
|
|
|
60 |
| admin | Test-Comp1 |
|
|
|
61 |
| admin | Test-Comp2 |
|
|
|
62 |
And I follow "Evidence of prior learning"
|
|
|
63 |
And I should see "List of evidence"
|
|
|
64 |
And I should see "Test-Evidence"
|
|
|
65 |
And I click on "Test-Evidence" "link"
|
|
|
66 |
And I should see "Linked competencies"
|
|
|
67 |
And I should see "Test-Comp1"
|
|
|
68 |
And I should see "Test-Comp2"
|
|
|
69 |
When I click on "Delete" "link" in the "Test-Comp1" "table_row"
|
|
|
70 |
And I wait until the page is ready
|
|
|
71 |
Then I should not see "Test-Comp1"
|
|
|
72 |
And I should see "Test-Comp2"
|