MDL-49412 behat: Updates to course behat tests.
authorAdrian Greeve <adrian@moodle.com>
Tue, 31 Mar 2015 03:45:03 +0000 (11:45 +0800)
committerAdrian Greeve <adrian@moodle.com>
Fri, 10 Apr 2015 09:18:22 +0000 (17:18 +0800)
Part of MDL-45774

course/tests/behat/activities_edit_completion.feature
course/tests/behat/add_activities.feature
course/tests/behat/frontpage_display_modes.feature
course/tests/behat/paged_course_navigation.feature
course/tests/behat/restrict_available_activities.feature

index 42cd98c..b264ea4 100644 (file)
@@ -11,7 +11,7 @@ Feature: Edit completion settings of an activity
     And the following config values are set as admin:
       | enablecompletion | 1 |
     And I log in as "admin"
-    And I am on homepage
+    And I am on site homepage
     And I follow "Course 1"
     And I turn editing mode on
     And I add a "Page" to section "1" and I fill the form with:
index 478f5ef..d43c923 100644 (file)
@@ -17,6 +17,7 @@ Feature: Add activities to courses
       | student1 | C1 | student |
       | student2 | C1 | student |
     And I log in as "admin"
+    And I am on site homepage
     And I follow "Course 1"
     And I turn editing mode on
 
index 5fa431f..c736f3a 100644 (file)
@@ -29,7 +29,7 @@ Feature: Front page displays items in different modes
     When I set the following administration settings values:
       | Front page items when logged in | List of categories |
       | Maximum category depth | 2 |
-    And I am on homepage
+    And I am on site homepage
     Then I should see "Category 1" in the "region-main" "region"
     And I should see "Category 1 child" in the "region-main" "region"
     And I should not see "Category 1 child child" in the "region-main" "region"
@@ -45,7 +45,7 @@ Feature: Front page displays items in different modes
     When I set the following administration settings values:
       | Front page items when logged in | Combo list |
       | Maximum category depth | 2 |
-    And I am on homepage
+    And I am on site homepage
     Then I should see "Category 1" in the "region-main" "region"
     And I should see "Category 1 child" in the "region-main" "region"
     And I should not see "Category 1 child child" in the "region-main" "region"
index b6d66f9..8be6ae1 100644 (file)
@@ -10,6 +10,7 @@ Feature: Course paged mode
       | fullname | shortname | category | format | coursedisplay | numsections |
       | Course 1 | C1 | 0 | <courseformat> | 1 | 3 |
     And I log in as "admin"
+    And I am on site homepage
     And I follow "Course 1"
     Then I click on <section2> "link" in the <section2> "section"
     And I follow "C1"
@@ -43,6 +44,7 @@ Feature: Course paged mode
       | fullname | shortname | category | format | coursedisplay | numsections |
       | Course 1 | C1 | 0 | <courseformat> | 1 | 3 |
     And I log in as "admin"
+    And I am on site homepage
     And I follow "Course 1"
     Then I click on <section2> "link" in the <section2> "section"
     And I follow "C1"
index 9a4f11b..9e687b6 100644 (file)
@@ -34,7 +34,7 @@ Feature: Restrict activities availability
     Given I log in as "admin"
     And I set the following system permissions of "Teacher" role:
       | mod/chat:addinstance | Prohibit |
-    And I am on homepage
+    And I am on site homepage
     And I follow "Course 1"
     And I expand "Users" node
     And I follow "Permissions"