[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/course/tests/behat/ -> edit_settings.feature (source)

   1  @core @core_course
   2  Feature: Edit course settings
   3    In order to set the course according to my teaching needs
   4    As a teacher
   5    I need to edit the course settings
   6  
   7    @javascript
   8    Scenario: Edit course settings
   9      Given the following "users" exist:
  10        | username | firstname | lastname | email |
  11        | teacher1 | Teacher | 1 | teacher1@example.com |
  12      And the following "courses" exist:
  13        | fullname | shortname | summary | format |
  14        | Course 1 | C1 | <p>Course summary</p> | topics |
  15      And the following "course enrolments" exist:
  16        | user | course | role |
  17        | teacher1 | C1 | editingteacher |
  18      And I log in as "teacher1"
  19      And I follow "Course 1"
  20      When I click on "Edit settings" "link" in the "Administration" "block"
  21      And I set the following fields to these values:
  22        | Course full name | Edited course fullname |
  23        | Course short name | Edited course shortname |
  24        | Course summary | Edited course summary |
  25      And I press "Save and display"
  26      And I follow "Edited course fullname"
  27      Then I should not see "Course 1"
  28      And I should not see "C1"
  29      And I should see "Edited course fullname"
  30      And I should see "Edited course shortname"
  31      And I click on "Edit settings" "link" in the "Administration" "block"
  32      And the field "Course full name" matches value "Edited course fullname"
  33      And the field "Course short name" matches value "Edited course shortname"
  34      And the field "Course summary" matches value "Edited course summary"
  35      And I am on homepage
  36      And I should see "Edited course fullname"
  37  
  38    Scenario: Edit course settings and return to the management interface
  39      Given the following "categories" exist:
  40        | name | category | idnumber |
  41        | Cat 1 | 0 | CAT1 |
  42      And the following "courses" exist:
  43        | category | fullname | shortname | idnumber |
  44        | CAT1 | Course 1 | Course 1 | C1 |
  45      And I log in as "admin"
  46      And I go to the courses management page
  47      And I should see the "Categories" management page
  48      And I click on category "Cat 1" in the management interface
  49      And I should see the "Course categories and courses" management page
  50      When I click on "edit" action for "Course 1" in management course listing
  51      And I set the following fields to these values:
  52        | Course full name | Edited course fullname |
  53        | Course short name | Edited course shortname |
  54        | Course summary | Edited course summary |
  55      And I press "Save and return"
  56      Then I should see the "Course categories and courses" management page


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