1 |
efrain |
1 |
@format @format_singleactivity
|
|
|
2 |
Feature: Edit format course to Single Activity format
|
|
|
3 |
In order to set the format course to single activity course
|
|
|
4 |
As a teacher
|
|
|
5 |
I need to edit the course settings and see the dropdown type activity
|
|
|
6 |
|
|
|
7 |
Scenario: Edit a format course as a teacher
|
|
|
8 |
Given the following "users" exist:
|
|
|
9 |
| username | firstname | lastname | email |
|
|
|
10 |
| teacher1 | Teacher | 1 | teacher1@example.com |
|
|
|
11 |
And the following "courses" exist:
|
|
|
12 |
| fullname | shortname | summary | format |
|
|
|
13 |
| Course 1 | C1 | <p>Course summary</p> | topics |
|
|
|
14 |
And the following "course enrolments" exist:
|
|
|
15 |
| user | course | role |
|
|
|
16 |
| teacher1 | C1 | editingteacher |
|
|
|
17 |
And I log in as "teacher1"
|
|
|
18 |
And I am on "Course 1" course homepage
|
|
|
19 |
When I navigate to "Settings" in current page administration
|
|
|
20 |
And I set the following fields to these values:
|
|
|
21 |
| Course full name | My first course |
|
|
|
22 |
| Course short name | myfirstcourse |
|
|
|
23 |
| Format | Single activity |
|
|
|
24 |
And I press "Update format"
|
|
|
25 |
Then I should see "Forum" in the "Type of activity" "field"
|
|
|
26 |
And I press "Save and display"
|
|
|
27 |
And I should see "New Forum"
|