%PDF- %PDF-
Direktori : /home/vacivi36/ava/course/tests/behat/ |
Current File : /home/vacivi36/ava/course/tests/behat/frontpage_topic_section.feature |
@core @core_course Feature: Site home 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 turn editing mode on 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 turn editing mode off 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 turn editing mode on 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 turn editing mode off And I should see "New section description" in the "region-main" "region"