[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

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

   1  @tool @javascript @tool_lp @tool_lp_template
   2  Feature: Manage plearning plan templates
   3    As a learning plan admin
   4    In order to perform CRUD operations on learning plan template
   5    I need to create, update and delete learning plan temlate
   6  
   7    Background:
   8      Given I log in as "admin"
   9      And I am on site homepage
  10      And I expand "Site administration" node
  11      When I expand "Competencies" node
  12      Then I should see "Learning plan templates"
  13  
  14    Scenario: Create a new learning plan template
  15      Given I follow "Learning plan templates"
  16      And I should see "List of learning plan templates"
  17      And I click on "Add new learning plan template" "button"
  18      And I should see "Add new learning plan template"
  19      And I set the field "Name" to "Science template"
  20      And I set the field "Description" to "Here description of learning plan template"
  21      When I press "Save changes"
  22      Then I should see "Learning plan template created"
  23      And I should see "Science template"
  24  
  25    Scenario: Read a learning plan template
  26      Given the following lp "templates" exist:
  27        | shortname | description |
  28        | Science template Year-2 | science template description |
  29      And I follow "Learning plan templates"
  30      And I should see "Science template Year-2"
  31      When I click on "Science template Year-2" "link"
  32      Then I should see "Science template Year-2"
  33      And I should see "Learning plan template competencies"
  34  
  35    Scenario: Edit a learning plan template
  36      Given the following lp "templates" exist:
  37        | shortname | description |
  38        | Science template Year-3 | science template description |
  39      And I follow "Learning plan templates"
  40      And I should see "Science template Year-3"
  41      And I click on "Edit" of edit menu in the "Science template Year-3" row
  42      And the field "Name" matches value "Science template Year-3"
  43      And I set the field "Name" to "Science template Year-3 Edited"
  44      When I press "Save changes"
  45      Then I should see "Learning plan template updated"
  46      And I should see "Science template Year-3 Edited"
  47  
  48    Scenario: Delete a learning plan template
  49      Given the following lp "templates" exist:
  50        | shortname | description |
  51        | Science template Year-4 | science template description |
  52      And I follow "Learning plan templates"
  53      And I should see "Science template Year-4"
  54      And I click on "Delete" of edit menu in the "Science template Year-4" row
  55      And "Confirm" "dialogue" should be visible
  56      And "Delete" "button" should exist in the "Confirm" "dialogue"
  57      And "Cancel" "button" should exist in the "Confirm" "dialogue"
  58      And I click on "Cancel" "button"
  59      And I click on "Delete" of edit menu in the "Science template Year-4" row
  60      And "Confirm" "dialogue" should be visible
  61      When I click on "Delete" "button"
  62      Then I should not see "Science template Year-4"


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