You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/behat/lastupdated.feature
+19-19Lines changed: 19 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -83,14 +83,14 @@ Feature: Show last updated information on OU blog activity link
83
83
And I log in as "student1"
84
84
And I am on "Course 1" course homepage
85
85
# Student should see both indicators.
86
-
Then "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][1]//span[@class='lastmodtext oubloglmt']""xpath_element" should exist
87
-
And "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][2]//span[@class='lastmodtext oubloglmt']""xpath_element" should exist
86
+
Then "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][1]//span[@class='lastmodtext oubloglmt']""xpath_element" should exist
87
+
And "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][2]//span[@class='lastmodtext oubloglmt']""xpath_element" should exist
88
88
Given I log out
89
89
And I log in as "student2"
90
90
And I am on "Course 1" course homepage
91
91
# Student should see only visible group indicators.
92
-
Then "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][1]//span[@class='lastmodtext oubloglmt']""xpath_element" should not exist
93
-
And "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][2]//span[@class='lastmodtext oubloglmt']""xpath_element" should exist
92
+
Then "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][1]//span[@class='lastmodtext oubloglmt']""xpath_element" should not exist
93
+
And "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][2]//span[@class='lastmodtext oubloglmt']""xpath_element" should exist
94
94
95
95
Scenario: Indivdual blogs
96
96
Given I log in as "admin"
@@ -125,8 +125,8 @@ Feature: Show last updated information on OU blog activity link
125
125
And I log in as "student1"
126
126
And I am on "Course 1" course homepage
127
127
# Student should see visible indicator only.
128
-
Then "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][1]//span[@class='lastmodtext oubloglmt']""xpath_element" should not exist
129
-
And "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][2]//span[@class='lastmodtext oubloglmt']""xpath_element" should exist
128
+
Then "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][1]//span[@class='lastmodtext oubloglmt']""xpath_element" should not exist
129
+
And "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][2]//span[@class='lastmodtext oubloglmt']""xpath_element" should exist
130
130
131
131
Scenario: Mixed blogs
132
132
Given I log in as "admin"
@@ -189,31 +189,31 @@ Feature: Show last updated information on OU blog activity link
189
189
| Message | P1 |
190
190
And I press "Add post"
191
191
When I am on "Course 1" course homepage
192
-
Then "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][1]//span[@class='lastmodtext oubloglmt']""xpath_element" should exist
193
-
And "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][2]//span[@class='lastmodtext oubloglmt']""xpath_element" should exist
194
-
And "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][3]//span[@class='lastmodtext oubloglmt']""xpath_element" should exist
195
-
And "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][4]//span[@class='lastmodtext oubloglmt']""xpath_element" should exist
192
+
Then "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][1]//span[@class='lastmodtext oubloglmt']""xpath_element" should exist
193
+
And "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][2]//span[@class='lastmodtext oubloglmt']""xpath_element" should exist
194
+
And "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][3]//span[@class='lastmodtext oubloglmt']""xpath_element" should exist
195
+
And "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][4]//span[@class='lastmodtext oubloglmt']""xpath_element" should exist
196
196
And I log out
197
197
Given I log in as "student1"
198
198
And I am on "Course 1" course homepage
199
199
# Student should see visible indicator only.
200
-
Then "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][1]//span[@class='lastmodtext oubloglmt']""xpath_element" should not exist
201
-
And "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][2]//span[@class='lastmodtext oubloglmt']""xpath_element" should not exist
202
-
And "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][3]//span[@class='lastmodtext oubloglmt']""xpath_element" should not exist
203
-
And "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][4]//span[@class='lastmodtext oubloglmt']""xpath_element" should exist
200
+
Then "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][1]//span[@class='lastmodtext oubloglmt']""xpath_element" should not exist
201
+
And "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][2]//span[@class='lastmodtext oubloglmt']""xpath_element" should not exist
202
+
And "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][3]//span[@class='lastmodtext oubloglmt']""xpath_element" should not exist
203
+
And "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][4]//span[@class='lastmodtext oubloglmt']""xpath_element" should exist
204
204
Given I follow "B.VISG"
205
205
And I press "New blog post"
206
206
And I set the following fields to these values:
207
207
| Title | P3 |
208
208
| Message | P3 |
209
209
And I press "Add post"
210
210
When I am on "Course 1" course homepage
211
-
Then "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][3]//span[@class='lastmodtext oubloglmt']""xpath_element" should exist
211
+
Then "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][3]//span[@class='lastmodtext oubloglmt']""xpath_element" should exist
212
212
And I log out
213
213
Given I log in as "student2"
214
214
And I am on "Course 1" course homepage
215
215
# Student should see visible group+individuals only.
216
-
Then "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][1]//span[@class='lastmodtext oubloglmt']""xpath_element" should not exist
217
-
And "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][2]//span[@class='lastmodtext oubloglmt']""xpath_element" should not exist
218
-
And "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][3]//span[@class='lastmodtext oubloglmt']""xpath_element" should not exist
219
-
And "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][4]//span[@class='lastmodtext oubloglmt']""xpath_element" should exist
216
+
Then "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][1]//span[@class='lastmodtext oubloglmt']""xpath_element" should not exist
217
+
And "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][2]//span[@class='lastmodtext oubloglmt']""xpath_element" should not exist
218
+
And "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][3]//span[@class='lastmodtext oubloglmt']""xpath_element" should not exist
219
+
And "/descendant::li[@class='activity activity-wrapper oublog modtype_oublog '][4]//span[@class='lastmodtext oubloglmt']""xpath_element" should exist
0 commit comments