MDL-67722 mod_forum: Reduce wait time on time limit expires behat test

This commit is contained in:
Michael Hawkins
2020-01-17 15:46:56 +08:00
parent fd908d09fd
commit e206c3b8f2
@@ -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"