1 |
efrain |
1 |
@core @core_admin
|
|
|
2 |
Feature: Display extended course names
|
|
|
3 |
In order to display more info about the courses
|
|
|
4 |
As an admin
|
|
|
5 |
I need to display courses short names along with courses full names
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following "courses" exist:
|
|
|
9 |
| fullname | shortname | category |
|
|
|
10 |
| Course fullname | C_shortname | 0 |
|
|
|
11 |
And I log in as "admin"
|
|
|
12 |
And I am on site homepage
|
|
|
13 |
|
|
|
14 |
Scenario: Courses list without extended course names (default value)
|
|
|
15 |
Then I should see "Course fullname"
|
|
|
16 |
And I should not see "C_shortname Course fullname"
|
|
|
17 |
|
|
|
18 |
Scenario: Courses list with extended course names
|
|
|
19 |
Given I navigate to "Appearance > Courses" in site administration
|
|
|
20 |
And I set the field "Display extended course names" to "1"
|
|
|
21 |
When I press "Save changes"
|
|
|
22 |
And I am on site homepage
|
|
|
23 |
Then I should see "C_shortname Course fullname"
|