MDL-44612 mod_forum: Confirm forum post listing in recent activity block
authorJun Pataleta <jun@moodle.com>
Mon, 8 Jan 2018 02:21:13 +0000 (10:21 +0800)
committerJun Pataleta <jun@moodle.com>
Wed, 24 Jan 2018 08:38:54 +0000 (16:38 +0800)
mod/forum/tests/behat/edit_post_student.feature

index bb5fbbc..9389dab 100644 (file)
@@ -40,7 +40,7 @@ Feature: Students can edit or delete their forum posts within a set time limit
     And I press "Continue"
     Then I should not see "Forum post subject"
 
-  @javascript
+  @javascript @block_recent_activity
   Scenario: Time limit expires
     Given I log out
     And I log in as "admin"
@@ -52,6 +52,8 @@ Feature: Students can edit or delete their forum posts within a set time limit
     And I log out
     And I log in as "student1"
     And I am on "Course 1" course homepage
+    And I should see "New forum posts:" in the "Recent activity" "block"
+    And I should see "Forum post subject" in the "Recent activity" "block"
     When I wait "61" seconds
     And I follow "Forum post subject"
     Then I should not see "Edit" in the "region-main" "region"