Rev 1 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
@core @core_courseFeature: Site home activities sectionIn order to show a display activities in the frontpageAs an adminI need to edit the frontpage sectionBackground:Given the following config values are set as admin:| numsections | 1 |Scenario: Activities should appear in frontpageGiven 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 homepageThen I should see "Frontpage assignment" in the "region-main" "region"@javascriptScenario: Section name does appears in frontpageGiven 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 homepageAnd I turn editing mode onAnd I click on "Edit" "link" in the "region-main" "region"And I set the field "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 offAnd I should see "New section name" in the "region-main" "region"@javascriptScenario: Section description appears in the frontpageGiven I log in as "admin"And I am on site homepageAnd I turn editing mode onAnd I click on "Edit" "link" in the "region-main" "region"And I set the field "Description" 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 offAnd I should see "New section description" in the "region-main" "region"@javascriptScenario: Admin can change the activity visibility in the frontpageGiven the following config values are set as admin:| allowstealth | 1 |And 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 homepageAnd I turn editing mode onAnd I should see "Frontpage assignment" in the "region-main" "region"Then I open "Frontpage assignment" actions menuAnd I choose "Availability > Make available but don't show on course page" in the open action menuAnd I should see "Available but not shown on course page" in the "Frontpage assignment" "core_courseformat > Activity visibility"And I open "Frontpage assignment" actions menuAnd I choose "Availability > Show on course page" in the open action menuAnd I should not see "Available but not shown on course page" in the "Frontpage assignment" "activity"And I should not see "Hidden from students" in the "Frontpage assignment" "activity"And I open "Frontpage assignment" actions menuAnd I choose "Availability > Hide on course page" in the open action menuAnd I should not see "Available but not shown on course page" in the "Frontpage assignment" "activity"And I should see "Hidden from students" in the "Frontpage assignment" "core_courseformat > Activity visibility"@javascriptScenario: Admin can delete an activity in the frontpageGiven 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 homepageAnd I turn editing mode onAnd I should see "Frontpage assignment" in the "region-main" "region"Then I open "Frontpage assignment" actions menuAnd I choose "Delete" in the open action menuAnd I click on "Delete" "button" in the "Delete activity?" "dialogue"And I should not see "Frontpage assignment" in the "region-main" "region"@javascriptScenario: Admin can duplicate an activity in the frontpageGiven 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 homepageAnd I turn editing mode onAnd I should see "Frontpage assignment" in the "region-main" "region"Then I open "Frontpage assignment" actions menuAnd I choose "Duplicate" in the open action menuAnd I should see "Frontpage assignment (copy)" in the "region-main" "region"@javascriptScenario: Admin can move an activity lefts and right in the frontpageGiven the following "activities" exist:| activity | course | section | name | intro | idnumber || assign | Acceptance test site | 1 | Frontpage assignment | Assignment description | assign0 || assign | Acceptance test site | 1 | Frontpage assignment | Assignment description | assign1 |And I log in as "admin"And I am on site homepageAnd I turn editing mode onAnd I should see "Frontpage assignment" in the "region-main" "region"When I open "Frontpage assignment" actions menuAnd "Move right" "link" should be visibleAnd "Move left" "link" should not be visibleAnd I choose "Move right" in the open action menuThen I open "Frontpage assignment" actions menuAnd "Move right" "link" should not be visibleAnd "Move left" "link" should be visibleAnd I choose "Move left" in the open action menuAnd I open "Frontpage assignment" actions menuAnd "Move right" "link" should be visibleAnd "Move left" "link" should not be visible