diff --git a/course/tests/behat/force_group_mode.feature b/course/tests/behat/force_group_mode.feature index 020da51194f..55766022040 100644 --- a/course/tests/behat/force_group_mode.feature +++ b/course/tests/behat/force_group_mode.feature @@ -14,11 +14,11 @@ Feature: Force group mode in a course And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | + And the following "activities" exist: + | activity | course | name | + | chat | C1 | Chat room | And I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on - And I add a "Chat" to section "1" and I fill the form with: - | Name of this chat room | Chat room | - | Description | Chat description | And I navigate to "Settings" in current page administration @javascript diff --git a/course/tests/behat/paged_course_navigation.feature b/course/tests/behat/paged_course_navigation.feature index abc9a04f87c..ce6523ce746 100644 --- a/course/tests/behat/paged_course_navigation.feature +++ b/course/tests/behat/paged_course_navigation.feature @@ -43,15 +43,15 @@ Feature: Course paged mode Given the following "courses" exist: | fullname | shortname | category | format | coursedisplay | numsections | startdate | | Course 1 | C1 | 0 | | 1 | 3 | 0 | - And I log in as "admin" + And the following "activities" exist: + | activity | course | name | + | chat | C1 | Chat room | + When I log in as "admin" And I am on "Course 1" course homepage with editing mode on And I click on "link" in the "section" And I should see in the "div.single-section" "css_element" And I should see in the ".single-section div.nextsection" "css_element" And I should not see in the ".single-section" "css_element" - When I add a "Chat" to section "1" and I fill the form with: - | Name of this chat room | Chat room | - | Description | Chat description | Then I should see in the "div.single-section" "css_element" And I should see in the ".single-section div.nextsection" "css_element" And I should not see in the ".single-section" "css_element" diff --git a/course/tests/behat/restrict_available_activities.feature b/course/tests/behat/restrict_available_activities.feature index 25087936fee..50a5439925b 100644 --- a/course/tests/behat/restrict_available_activities.feature +++ b/course/tests/behat/restrict_available_activities.feature @@ -14,6 +14,9 @@ Feature: Restrict activities availability And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | + And the following "activities" exist: + | activity | course | name | + | chat | C1 | Test chat name | @javascript Scenario: Activities can be added with the default permissions @@ -22,9 +25,6 @@ Feature: Restrict activities availability When I add a "Glossary" to section "1" and I fill the form with: | Name | Test glossary name | | Description | Test glossary description | - And I add a "Chat" to section "1" and I fill the form with: - | Name of this chat room | Test chat name | - | Description | Test chat description | Then I should see "Test glossary name" And I should see "Test chat name"