Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 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 the following config values are set as admin:
19
      | courselistshortnames | 1 |
20
    And I log in as "teacher1"
21
    And I am on "Course 1" course homepage
22
    When I navigate to "Settings" in current page administration
23
    And I set the following fields to these values:
24
      | Course full name | Edited course fullname |
25
      | Course short name | Edited course shortname |
26
      | Course summary | Edited course summary |
27
    And I press "Save and display"
28
    And I am on site homepage
29
    Then I should not see "Course 1"
30
    And I should not see "C1"
31
    And I should see "Edited course fullname"
32
    And I should see "Edited course shortname"
33
    And I am on "Edited course fullname" course homepage
34
    And I navigate to "Settings" in current page administration
35
    And the field "Course full name" matches value "Edited course fullname"
36
    And the field "Course short name" matches value "Edited course shortname"
37
    And the field "Course summary" matches value "Edited course summary"
38
    And I am on site homepage
39
    And I should see "Edited course fullname"
40
 
41
  Scenario: Edit course settings and return to the management interface
42
    Given the following "categories" exist:
43
      | name | category | idnumber |
44
      | Cat 1 | 0 | CAT1 |
45
    And the following "courses" exist:
46
      | category | fullname | shortname | idnumber |
47
      | CAT1 | Course 1 | Course 1 | C1 |
48
    And I log in as "admin"
49
    And I go to the courses management page
50
    And I should see the "Categories" management page
51
    And I click on category "Cat 1" in the management interface
52
    And I should see the "Course categories and courses" management page
53
    When I click on "edit" action for "Course 1" in management course listing
54
    And I set the following fields to these values:
55
      | Course full name | Edited course fullname |
56
      | Course short name | Edited course shortname |
57
      | Course summary | Edited course summary |
58
    And I press "Save and return"
59
    Then I should see the "Course categories and courses" management page