From 66fa0c91ff1580612371f9c2ce7751f195967c42 Mon Sep 17 00:00:00 2001 From: Michael Hawkins Date: Fri, 17 Jan 2020 15:44:15 +0800 Subject: [PATCH] MDL-67722 mod_forum: Reduce wait time on time limit expires behat test --- mod/forum/tests/behat/edit_post_student.feature | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mod/forum/tests/behat/edit_post_student.feature b/mod/forum/tests/behat/edit_post_student.feature index 7a44ae79265..42e66bc658f 100644 --- a/mod/forum/tests/behat/edit_post_student.feature +++ b/mod/forum/tests/behat/edit_post_student.feature @@ -44,9 +44,8 @@ Feature: Students can edit or delete their forum posts within a set time limit Scenario: Time limit expires Given I log out And I log in as "admin" - And I navigate to "Security > Site security settings" in site administration - And I set the field "Maximum time to edit posts" to "1 minutes" - And I press "Save changes" + And the following config values are set as admin: + | maxeditingtime | 1 | And I am on "Course 1" course homepage with editing mode on And I add the "Recent activity" block And I log out @@ -54,7 +53,7 @@ Feature: Students can edit or delete their forum posts within a set time limit 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 + When I wait "2" seconds And I follow "Forum post subject" Then I should not see "Edit" in the "region-main" "region" And I should not see "Delete" in the "region-main" "region"