@@ -50,7 +50,9 @@ Feature: Test basic usage of forum activity in app
5050 And I set the field "Message" to "DiscussionMessage" in the app
5151 And I press "Post to forum" in the app
5252 And I press "DiscussionSubject" in the app
53- And I press "Reply" in the app
53+ Then I should see "Reply"
54+
55+ When I press "Reply" in the app
5456 And I set the field "Write your reply" to "ReplyMessage" in the app
5557 And I press "Post to forum" in the app
5658 Then I should see "DiscussionMessage"
@@ -62,11 +64,11 @@ Feature: Test basic usage of forum activity in app
6264 And I log in as "student1"
6365 And I press "Course 1" near "Course overview" in the app
6466 And I press "Test forum name" in the app
65- And I press "close " in the app
67+ And I press "Add a new discussion topic " in the app
6668 And I set the field "Subject" to "starred subject" in the app
6769 And I set the field "Message" to "starred message" in the app
6870 And I press "Post to forum" in the app
69- And I press "close " in the app
71+ And I press "Add a new discussion topic " in the app
7072 And I set the field "Subject" to "normal subject" in the app
7173 And I set the field "Message" to "normal message" in the app
7274 And I press "Post to forum" in the app
@@ -99,25 +101,25 @@ Feature: Test basic usage of forum activity in app
99101 And I log in as "teacher1"
100102 And I press "Course 1" near "Course overview" in the app
101103 And I press "Test forum name" in the app
102- And I press "close " in the app
104+ And I press "Add a new discussion topic " in the app
103105 And I set the field "Subject" to "Auto-test star" in the app
104106 And I set the field "Message" to "Auto-test star message" in the app
105107 And I press "Post to forum" in the app
106- And I press "close " in the app
108+ And I press "Add a new discussion topic " in the app
107109 And I set the field "Subject" to "Auto-test pin" in the app
108110 And I set the field "Message" to "Auto-test pin message" in the app
109111 And I press "Post to forum" in the app
110- And I press "close " in the app
111- And I set the field "Subject" to "Auto-test" in the app
112- And I set the field "Message" to "Auto-test message" in the app
112+ And I press "Add a new discussion topic " in the app
113+ And I set the field "Subject" to "Auto-test plain " in the app
114+ And I set the field "Message" to "Auto-test plain message" in the app
113115 And I press "Post to forum" in the app
114116 And I press "Display options" near "Auto-test star" in the app
115117 And I press "Star this discussion" in the app
116118 And I press "Display options" near "Auto-test pin" in the app
117119 And I press "Pin this discussion" in the app
118120 Then I should see "Auto-test pin"
119121 And I should see "Auto-test star"
120- And I should see "Auto-test"
122+ And I should see "Auto-test plain "
121123
122124 When I press "Display options" near "Auto-test pin" in the app
123125 And I press "Unpin this discussion" in the app
@@ -132,12 +134,14 @@ Feature: Test basic usage of forum activity in app
132134 And I log in as "teacher1"
133135 And I press "Course 1" near "Course overview" in the app
134136 And I press "Test forum name" in the app
135- And I press "close " in the app
137+ And I press "Add a new discussion topic " in the app
136138 And I set the field "Subject" to "Auto-test" in the app
137139 And I set the field "Message" to "Auto-test message" in the app
138140 And I press "Post to forum" in the app
139141 And I press "Auto-test" in the app
140- And I press "Information" in the app
142+ Then I should see "Reply"
143+
144+ When I press "Information" in the app
141145 Then I should not see "Star this discussion"
142146 And I should not see "Pin this discussion"
143147
@@ -147,13 +151,19 @@ Feature: Test basic usage of forum activity in app
147151 And I log in as "student1"
148152 And I press "Course 1" near "Course overview" in the app
149153 And I press "Test forum name" in the app
150- And I press "close " in the app
154+ And I press "Add a new discussion topic " in the app
151155 And I set the field "Subject" to "Auto-test" in the app
152156 And I set the field "Message" to "Auto-test message" in the app
153157 And I press "Post to forum" in the app
154158 And I press "Auto-test" near "Sort by last post creation date in descending order" in the app
159+ And I should see "Reply"
160+
161+ When I press the back button in the app
155162 And I switch offline mode to "true"
156- And I press "Reply" in the app
163+ And I press "Auto-test" near "Sort by last post creation date in descending order" in the app
164+ Then I should see "Reply"
165+
166+ When I press "Reply" in the app
157167 And I set the field "Write your reply..." to "not sent reply" in the app
158168 And I press "Post to forum" in the app
159169 And I press "Display options" near "not sent reply" in the app
@@ -178,7 +188,7 @@ Feature: Test basic usage of forum activity in app
178188 And I press "Course 1" near "Course overview" in the app
179189 And I press "Test forum name" in the app
180190 And I switch offline mode to "true"
181- And I press "close " in the app
191+ And I press "Add a new discussion topic " in the app
182192 And I set the field "Subject" to "Auto-test" in the app
183193 And I set the field "Message" to "Auto-test message" in the app
184194 And I press "Post to forum" in the app
@@ -189,7 +199,9 @@ Feature: Test basic usage of forum activity in app
189199
190200 When I switch offline mode to "false"
191201 And I press "Auto-test" in the app
192- And I press "Post to forum" in the app
202+ Then I should see "Post to forum"
203+
204+ When I press "Post to forum" in the app
193205 Then I should not see "This Forum has offline data to be synchronised."
194206
195207 When I press "Auto-test" near "Sort by last post creation date in descending order" in the app
@@ -201,7 +213,7 @@ Feature: Test basic usage of forum activity in app
201213 And I log in as "student1"
202214 And I press "Course 1" near "Course overview" in the app
203215 And I press "Test forum name" in the app
204- And I press "close " in the app
216+ And I press "Add a new discussion topic " in the app
205217 And I set the field "Subject" to "Auto-test" in the app
206218 And I set the field "Message" to "Auto-test message" in the app
207219 And I press "Post to forum" in the app
@@ -213,7 +225,9 @@ Feature: Test basic usage of forum activity in app
213225 And I press "cloud download" near "Test forum name" in the app
214226 And I press "Test forum name" in the app
215227 And I press "Auto-test" near "Sort by last post creation date in descending order" in the app
216- And I press "Display options" near "Reply" in the app
228+ Then I should see "Reply"
229+
230+ When I press "Display options" near "Reply" in the app
217231 Then I should see "Edit"
218232
219233 When I press "Edit" in the app
@@ -232,7 +246,7 @@ Feature: Test basic usage of forum activity in app
232246 And I log in as "student1"
233247 And I press "Course 1" near "Course overview" in the app
234248 And I press "Test forum name" in the app
235- And I press "close " in the app
249+ And I press "Add a new discussion topic " in the app
236250 And I set the field "Subject" to "Auto-test" in the app
237251 And I set the field "Message" to "Auto-test message" in the app
238252 And I press "Post to forum" in the app
@@ -244,7 +258,9 @@ Feature: Test basic usage of forum activity in app
244258 And I press "cloud download" near "Test forum name" in the app
245259 And I press "Test forum name" in the app
246260 And I press "Auto-test" near "Sort by last post creation date in descending order" in the app
247- And I press "Display options" near "Reply" in the app
261+ Then I should see "Reply"
262+
263+ When I press "Display options" near "Reply" in the app
248264 Then I should see "Delete"
249265
250266 When I press "Delete" in the app
@@ -268,20 +284,24 @@ Feature: Test basic usage of forum activity in app
268284 And I log in as "student1"
269285 And I press "Course 1" near "Course overview" in the app
270286 And I press "Test forum name" in the app
271- And I press "close " in the app
287+ And I press "Add a new discussion topic " in the app
272288 And I set the field "Subject" to "Auto-test" in the app
273289 And I set the field "Message" to "Auto-test message" in the app
274290 And I press "Post to forum" in the app
275291 And I press "Auto-test" in the app
276- And I press "Reply" in the app
292+ Then I should see "Reply"
293+
294+ When I press "Reply" in the app
277295 And I set the field "Write your reply..." to "test2" in the app
278296 And I press "Post to forum" in the app
279297 When I enter the app
280298 And I log in as "teacher1"
281299 And I press "Course 1" near "Course overview" in the app
282300 And I press "Test forum name" in the app
283301 And I press "Auto-test" in the app
284- And I press "None" near "Auto-test message" in the app
302+ Then I should see "Reply"
303+
304+ When I press "None" near "Auto-test message" in the app
285305 And I press "1" near "Cancel" in the app
286306 And I switch offline mode to "true"
287307 And I press "None" near "test2" in the app
@@ -329,7 +349,9 @@ Feature: Test basic usage of forum activity in app
329349 And I press "Test forum name" in the app
330350 And I press "DiscussionSubject" in the app
331351 And I switch offline mode to "true"
332- And I press "Reply" in the app
352+ Then I should see "Reply"
353+
354+ When I press "Reply" in the app
333355 And I set the field "Write your reply" to "ReplyMessage" in the app
334356 And I press "Post to forum" in the app
335357 Then I should see "DiscussionMessage"
@@ -402,10 +424,10 @@ Feature: Test basic usage of forum activity in app
402424 And I press "Course 1" near "Course overview" in the app
403425 And I press "Test forum name" in the app
404426 And I press "Add a new discussion topic" in the app
405- And I set the field "Subject" to "DiscussionSubject" in the app
406- And I set the field "Message" to "DiscussionMessage" in the app
427+ And I set the field "Subject" to "DiscussionSubject 1 " in the app
428+ And I set the field "Message" to "DiscussionMessage 1 " in the app
407429 And I press "Post to forum" in the app
408- Then I should see "DiscussionSubject"
430+ Then I should see "DiscussionSubject 1 "
409431
410432 When I press the back button in the app
411433 And I press "Display options" in the app
@@ -416,7 +438,7 @@ Feature: Test basic usage of forum activity in app
416438 And I set the field "Subject" to "DiscussionSubject 2" in the app
417439 And I set the field "Message" to "DiscussionMessage 2" in the app
418440 And I press "Post to forum" in the app
419- Then I should see "DiscussionSubject"
441+ Then I should see "DiscussionSubject 1 "
420442 And I should see "DiscussionSubject 2"
421443
422444 When I press the back button in the app
@@ -427,7 +449,7 @@ Feature: Test basic usage of forum activity in app
427449
428450 When I press "OK" in the app
429451 And I press the back button in the app
430- And I press "DiscussionSubject" in the app
431- Then I should see "DiscussionSubject"
432- And I should see "DiscussionMessage"
452+ And I press "DiscussionSubject 1 " in the app
453+ Then I should see "DiscussionSubject 1 "
454+ And I should see "DiscussionMessage 1 "
433455 But I should not see "There was a problem connecting to the site. Please check your connection and try again."
0 commit comments