@@ -15,9 +15,7 @@ Feature: A teacher can set one of 3 possible options for tracking read moodleove
1515 | user | course | role |
1616 | student1 | C1 | student |
1717 And I log in as "admin"
18- And I am on site homepage
19- And I follow "Course 1"
20- And I turn editing mode on
18+ And I am on "Course 1" course homepage with editing mode on
2119
2220 Scenario : Tracking moodleoverflow posts off
2321 Given the following "activities" exist:
@@ -49,21 +47,20 @@ Feature: A teacher can set one of 3 possible options for tracking read moodleove
4947 And I follow "Test moodleoverflow name"
5048 And I follow "Don't track unread posts"
5149 And I wait to be redirected
52- And I follow "Course 1"
50+ And I am on "Course 1" course homepage
5351 And I should not see "1 unread post"
5452 And I follow "Test moodleoverflow name"
5553 And I follow "Track unread posts"
5654 And I wait to be redirected
5755 And I click on "1" "link" in the "Admin User" "table_row"
58- And I follow "Course 1"
56+ And I am on "Course 1" course homepage
5957 And I should not see "1 unread post"
6058
6159 @javascript
6260 Scenario : Tracking moodleoverflow posts forced
6361 Given the following config values are set as admin:
6462 | allowforcedreadtracking | 1 | moodleoverflow |
65- And I am on site homepage
66- And I follow "Course 1"
63+ And I am on "Course 1" course homepage
6764 Given the following "activities" exist:
6865 | activity | name | intro | course | idnumber | trackingtype |
6966 | moodleoverflow | Test moodleoverflow name | Test moodleoverflow description | C1 | moodleoverflow | 2 |
@@ -78,14 +75,13 @@ Feature: A teacher can set one of 3 possible options for tracking read moodleove
7875 And I follow "1 unread post"
7976 And I should not see "Don't track unread posts"
8077 And I follow "Test post subject"
81- And I follow "Course 1"
78+ And I am on "Course 1" course homepage
8279 And I should not see "1 unread post"
8380
8481 Scenario : Tracking moodleoverflow posts forced (with force disabled)
8582 Given the following config values are set as admin:
8683 | allowforcedreadtracking | 1 | moodleoverflow |
87- And I am on site homepage
88- And I follow "Course 1"
84+ And I am on "Course 1" course homepage
8985 Given the following "activities" exist:
9086 | activity | name | intro | course | idnumber | trackingtype |
9187 | moodleoverflow | Test moodleoverflow name | Test moodleoverflow description | C1 | moodleoverflow | 2 |
@@ -102,11 +98,11 @@ Feature: A teacher can set one of 3 possible options for tracking read moodleove
10298 And I follow "Test moodleoverflow name"
10399 And I follow "Don't track unread posts"
104100 And I wait to be redirected
105- And I follow "Course 1"
101+ And I am on "Course 1" course homepage
106102 And I should not see "1 unread post"
107103 And I follow "Test moodleoverflow name"
108104 And I follow "Track unread posts"
109105 And I wait to be redirected
110106 And I click on "1" "link" in the "Admin User" "table_row"
111- And I follow "Course 1"
107+ And I am on "Course 1" course homepage
112108 And I should not see "1 unread post"
0 commit comments