forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'MDL-71141-master' of git://github.com/ferranrecio/moodle
- Loading branch information
Showing
3 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
@core @core_course | ||
Feature: Front page topic section | ||
In order to show a display activities in the frontpage | ||
As an admin | ||
I need to edit the frontpage topic section | ||
|
||
Background: | ||
Given the following config values are set as admin: | ||
| numsections | 1 | | ||
|
||
Scenario: Activities should appear in frontpage | ||
Given the following "activities" exist: | ||
| activity | course | section | name | intro | idnumber | | ||
| assign | Acceptance test site | 1 | Frontpage assignment | Assignment description | assign0 | | ||
When I log in as "admin" | ||
And I am on site homepage | ||
Then I should see "Frontpage assignment" in the "region-main" "region" | ||
|
||
@javascript | ||
Scenario: Topic name does appears in frontpage | ||
Given the following "activities" exist: | ||
| activity | course | section | name | intro | idnumber | | ||
| assign | Acceptance test site | 1 | Frontpage assignment | Assignment description | assign0 | | ||
And I log in as "admin" | ||
And I am on site homepage | ||
And I navigate to "Turn editing on" in current page administration | ||
And I click on "Edit summary" "link" in the "region-main" "region" | ||
And I click on "Custom" "checkbox" | ||
And I set the field "New value for Section name" to "New section name" | ||
When I press "Save changes" | ||
And I should see "New section name" in the "region-main" "region" | ||
Then I navigate to "Turn editing off" in current page administration | ||
And I should see "New section name" in the "region-main" "region" | ||
|
||
@javascript | ||
Scenario: Topic description appears in the frontpage | ||
Given I log in as "admin" | ||
And I am on site homepage | ||
And I navigate to "Turn editing on" in current page administration | ||
And I click on "Edit summary" "link" in the "region-main" "region" | ||
And I set the field "Summary" to "New section description" | ||
When I press "Save changes" | ||
And I should see "New section description" in the "region-main" "region" | ||
Then I navigate to "Turn editing off" in current page administration | ||
And I should see "New section description" in the "region-main" "region" |