Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@tool @javascript @tool_lp @tool_lp_user_evidence
2
Feature: Manage evidence of prior learning
3
  In order to perform CRUD operations on evidence of prior learning
4
  As a user
5
  I need to create, update and delete evidence of prior learning
6
 
7
  Background:
8
    Given the following "users" exist:
9
      | username | firstname | lastname | email |
10
      |user1 | User | 1 | user1@example.com |
11
    When I log in as "user1"
12
    And I follow "Profile" in the user menu
13
    And I follow "Learning plans"
14
    Then I should see "Evidence of prior learning"
15
 
16
  Scenario: Create a new evidence of prior learning
17
    Given I follow "Evidence of prior learning"
18
    And I should see "List of evidence"
19
    When I click on "Add new evidence" "button"
20
    And I set the field "Name" to "Evidence-1"
21
    And I set the field "Description" to "Evidence-1 description"
22
    And I press "Save changes"
23
    Then I should see "Evidence of prior learning created"
24
    And I should see "Evidence-1"
25
 
26
  Scenario: Read an evidence of prior learning
27
    Given the following lp "userevidence" exist:
28
      | name | description | user |
29
      | Evidence-2 | Evidence-2 description | user1 |
30
    And I follow "Evidence of prior learning"
31
    And I should see "List of evidence"
32
    And I should see "Evidence-2"
33
    When I click on "Evidence-2" "link"
34
    Then I should see "Evidence-2"
35
 
36
  Scenario: Edit an evidence of prior learning
37
    Given the following lp "userevidence" exist:
38
      | name | description | user |
39
      | Evidence-3 | Evidence-3 description | user1 |
40
    And I follow "Evidence of prior learning"
41
    And I should see "List of evidence"
42
    And I click on "Edit" of edit menu in the "Evidence-3" row
43
    And the field "Name" matches value "Evidence-3"
44
    When I set the field "Name" to "Evidence-3 Edited"
45
    And I press "Save changes"
46
    Then I should see "Evidence of prior learning updated"
47
    And I should see "Evidence-3 Edited"
48
 
49
  Scenario: Delete an evidence of prior learning
50
    Given the following lp "userevidence" exist:
51
      | name | description | user |
52
      | Evidence-4 | Evidence-4 description | user1 |
53
    And I follow "Evidence of prior learning"
54
    And I should see "List of evidence"
55
    And I click on "Delete" of edit menu in the "Evidence-4" row
56
    And I click on "Cancel" "button" in the "Confirm" "dialogue"
57
    And I click on "Delete" of edit menu in the "Evidence-4" row
58
    And "Confirm" "dialogue" should be visible
59
    When I click on "Delete" "button" in the "Confirm" "dialogue"
60
    And I wait until the page is ready
61
    Then I should not see "Evidence-4"
62
 
63
  Scenario: List evidences of prior learning
64
    Given the following "users" exist:
65
      | username | firstname | lastname | email |
66
      |user2 | User | 2 | user2@example.com |
67
    And the following lp "userevidence" exist:
68
      | name | description | user |
69
      | Evidence-5 | Evidence-5 description | user1 |
70
      | Evidence-6 | Evidence-6 description | user2 |
71
    And I follow "Evidence of prior learning"
72
    And I should see "List of evidence"
73
    And I should see "Evidence-5"
74
    When I log out
75
    And I log in as "user2"
76
    And I follow "Profile" in the user menu
77
    And I follow "Learning plans"
78
    And I follow "Evidence of prior learning"
79
    Then I should see "List of evidence"
80
    And I should see "Evidence-6"
81
    And I should not see "Evidence-5"