2 Feature: Edit course settings
3 In order to set the course according to my teaching needs
5 I need to edit the course settings
8 Scenario: Edit course settings
9 Given the following "users" exist:
10 | username | firstname | lastname | email |
11 | teacher1 | Teacher | 1 | teacher1@asd.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 changes"
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"
36 And I should see "Edited course fullname"