1 |
efrain |
1 |
@mod @mod_label
|
|
|
2 |
|
|
|
3 |
Feature: Set label name
|
|
|
4 |
As a teacher
|
|
|
5 |
I should be able to create a label activity and set a name
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following "courses" exist:
|
|
|
9 |
| fullname | shortname | category |
|
|
|
10 |
| Test | C1 | 0 |
|
|
|
11 |
And the following "users" exist:
|
|
|
12 |
| username | firstname | lastname | email |
|
|
|
13 |
| teacher | Teacher | First | teacher1@example.com |
|
|
|
14 |
And the following "course enrolments" exist:
|
|
|
15 |
| user | course | role |
|
|
|
16 |
| teacher | C1 | editingteacher |
|
|
|
17 |
And the following "activities" exist:
|
|
|
18 |
| activity | course | section | intro | idnumber |
|
|
|
19 |
| label | C1 | 1 | Intro Text | C1LABEL1 |
|
|
|
20 |
|
|
|
21 |
Scenario: label name input box should be shown and can be set
|
|
|
22 |
When I log in as "teacher"
|
|
|
23 |
And I am on "Test" course homepage
|
|
|
24 |
And "Intro Text" activity should be visible
|
|
|
25 |
And I am on the "Intro Text" "label activity editing" page logged in as teacher
|
|
|
26 |
And I should see "Title in course index" in the "General" "fieldset"
|
|
|
27 |
And I set the field "Title in course index" to "Test Label 1"
|
|
|
28 |
And I press "Save and return to course"
|
|
|
29 |
And I am on "Test" course homepage
|
|
|
30 |
Then "Test Label 1" activity should be visible
|