diff --git a/blocks/social_activities/tests/behat/edit_activities.feature b/blocks/social_activities/tests/behat/edit_activities.feature index 22f1177e27a..2cf87a5089e 100644 --- a/blocks/social_activities/tests/behat/edit_activities.feature +++ b/blocks/social_activities/tests/behat/edit_activities.feature @@ -16,14 +16,15 @@ Feature: Edit activities in social activities block | user | course | role | | user1 | C1 | editingteacher | | student1 | C1 | student | - And the following "activities" exist: - | activity | course | idnumber | name | - | forum | C1 | forum | My forum name | @javascript - Scenario: Edit name of acitivity in-place in social activities block + Scenario: Edit name of activity in-place in social activities block Given I log in as "user1" And I am on "Course 1" course homepage with editing mode on + And 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" And I click on "Edit title" "link" in the "My forum name" activity in social activities block And I set the field "New name for activity My forum name" to "New forum name" And I press key "13" in the field "New name for activity My forum name" @@ -42,6 +43,10 @@ Feature: Edit activities in social activities block And I log in as "user1" And I am on "Course 1" course homepage with editing mode on And I add the "Recent activity" block + And 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" And "My forum name" activity in social activities block should have "Hide" editing icon And "My forum name" activity in social activities block should not have "Show" editing icon And "My forum name" activity in social activities block should not have "Make available" editing icon