1 |
efrain |
1 |
@core @core_course
|
|
|
2 |
Feature: Site home activities section
|
|
|
3 |
In order to show a display activities in the frontpage
|
|
|
4 |
As an admin
|
|
|
5 |
I need to edit the frontpage section
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following config values are set as admin:
|
|
|
9 |
| numsections | 1 |
|
|
|
10 |
|
|
|
11 |
Scenario: Activities should appear in frontpage
|
|
|
12 |
Given the following "activities" exist:
|
|
|
13 |
| activity | course | section | name | intro | idnumber |
|
|
|
14 |
| assign | Acceptance test site | 1 | Frontpage assignment | Assignment description | assign0 |
|
|
|
15 |
When I log in as "admin"
|
|
|
16 |
And I am on site homepage
|
|
|
17 |
Then I should see "Frontpage assignment" in the "region-main" "region"
|
|
|
18 |
|
|
|
19 |
@javascript
|
|
|
20 |
Scenario: Section name does appears in frontpage
|
|
|
21 |
Given the following "activities" exist:
|
|
|
22 |
| activity | course | section | name | intro | idnumber |
|
|
|
23 |
| assign | Acceptance test site | 1 | Frontpage assignment | Assignment description | assign0 |
|
|
|
24 |
And I log in as "admin"
|
|
|
25 |
And I am on site homepage
|
|
|
26 |
And I turn editing mode on
|
|
|
27 |
And I click on "Edit" "link" in the "region-main" "region"
|
|
|
28 |
And I set the field "Section name" to "New section name"
|
|
|
29 |
When I press "Save changes"
|
|
|
30 |
And I should see "New section name" in the "region-main" "region"
|
|
|
31 |
Then I turn editing mode off
|
|
|
32 |
And I should see "New section name" in the "region-main" "region"
|
|
|
33 |
|
|
|
34 |
@javascript
|
|
|
35 |
Scenario: Section description appears in the frontpage
|
|
|
36 |
Given I log in as "admin"
|
|
|
37 |
And I am on site homepage
|
|
|
38 |
And I turn editing mode on
|
|
|
39 |
And I click on "Edit" "link" in the "region-main" "region"
|
|
|
40 |
And I set the field "Description" to "New section description"
|
|
|
41 |
When I press "Save changes"
|
|
|
42 |
And I should see "New section description" in the "region-main" "region"
|
|
|
43 |
Then I turn editing mode off
|
|
|
44 |
And I should see "New section description" in the "region-main" "region"
|