Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
@block @block_social_activities @format_socialFeature: Edit activities in social activities blockIn order to use social activities blockAs a teacherI need to add and edit activities thereBackground:Given the following "courses" exist:| fullname | shortname | format || Course 1 | C1 | social |And the following "users" exist:| username | firstname | lastname || user1 | User | One || student1 | Student | One |And the following "course enrolments" exist:| user | course | role || user1 | C1 | editingteacher || student1 | C1 | student |@javascriptScenario: Edit name of activity in-place in social activities blockGiven the following "activities" exist:| activity | course | name || forum | C1 | My forum name |And I log in as "user1"And I am on "Course 1" course homepage with editing mode onWhen I set the field "Edit title" in the "My forum name" "block_social_activities > Activity" to "New forum name"Then I should not see "My forum name" in the "Social activities" "block"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 social activities 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 || recent_activity | Course | C1 | course-view-* | side-pre |And I log in as "user1"And I am on "Course 1" course homepage with editing mode onAnd I press "Add an activity or resource"And I click on "Add a new Forum" "link" in the "Add an activity or resource" "dialogue"And I set the field "Forum name" to "My forum name"And I press "Save and return to course"When I open "My forum name" actions menu in social activities 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 social activities blockAnd I click on "Edit settings" "link" in the "My forum name" activity in social activities 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 social activities block should be available but hidden from course pageAnd I turn editing mode offAnd "My forum name" activity in social activities block should be available but hidden from course pageAnd I log out# Student will not see the module on the course page but can access it from other reports and blocks:When I am on the "Course 1" course page logged in as student1Then I should not see "My forum name" in the "Social activities" "block"And I click on "My forum name" "link" in the "Recent activity" "block"And I should see "My forum name" in the ".breadcrumb" "css_element"