Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
@block @block_site_main_menuFeature: Edit activities in main menu blockIn order to use main menu blockAs an adminI need to add and edit activities there@javascriptScenario: Edit name of acitivity in-place in site main menu blockGiven the following "activity" exists:| activity | forum || course | Acceptance test site || name | My forum name || idnumber | forum |And the following "blocks" exist:| blockname | contextlevel | reference | pagetypepattern | defaultregion || site_main_menu | System | 1 | site-index | side-pre |And I log in as "admin"And I am on site homepageAnd I turn editing mode onWhen I set the field "Edit title" in the "My forum name" "block_site_main_menu > Activity" to "New forum name"Then I should not see "My forum name"And I should see "New forum name"And I follow "New forum name"And I should not see "My forum name"And I should see "New forum name"@javascriptScenario: Activities in main menu block can be made available but not visible on a course pageGiven the following config values are set as admin:| allowstealth | 1 |And the following "blocks" exist:| blockname | contextlevel | reference | pagetypepattern | defaultregion || site_main_menu | System | 1 | site-index | side-pre |And the following "activities" exist:| activity | course | section | name || forum | Acceptance test site | 0 | Visible forum || forum | Acceptance test site | 0 | My forum name |And I log in as "admin"And I am on site homepageAnd I turn editing mode onWhen I open "My forum name" actions menu in site main menu blockAnd I choose "Availability > Make available but don't show on course page" in the open action menuThen I should see "Available but not shown on course page" in the "My forum name" "core_courseformat > Activity visibility"# Make sure that "Availability" dropdown in the edit menu has three options.And I open "My forum name" actions menu in site main menu blockAnd I click on "Edit settings" "link" in the "My forum name" activity in site main menu blockAnd I expand all fieldsetsAnd the "Availability" select box should contain "Show on course page"And the "Availability" select box should contain "Hide on course page"And the field "Availability" matches value "Make available but don't show on course page"And I press "Save and return to course"And "My forum name" activity in site main menu block should be available but hidden from course pageAnd I turn editing mode offAnd "My forum name" activity in site main menu block should be available but hidden from course pageAnd I log outAnd I should not see "My forum name" in the "Main menu" "block"And I should see "Visible forum" in the "Main menu" "block"