[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/admin/tool/lp/tests/behat/ -> user_evidence_crud.feature (source)

   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"
  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"
  60      Then I should not see "Evidence-4"
  61  
  62    Scenario: List evidences of prior learning
  63      Given the following "users" exist:
  64        | username | firstname | lastname | email |
  65        |user2 | User | 2 | user2@example.com |
  66      And the following lp "userevidence" exist:
  67        | name | description | user |
  68        | Evidence-5 | Evidence-5 description | user1 |
  69        | Evidence-6 | Evidence-6 description | user2 |
  70      And I follow "Evidence of prior learning"
  71      And I should see "List of evidence"
  72      And I should see "Evidence-5"
  73      When I log out
  74      And I log in as "user2"
  75      And I follow "Profile" in the user menu
  76      And I follow "Learning plans"
  77      And I follow "Evidence of prior learning"
  78      Then I should see "List of evidence"
  79      And I should see "Evidence-6"
  80      And I should not see "Evidence-5"
  81  


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1