Skip to content

Commit

Permalink
Merge branch 'MDL-67722-35' of git://github.com/mickhawkins/moodle in…
Browse files Browse the repository at this point in the history
…to MOODLE_35_STABLE
  • Loading branch information
stronk7 committed Jan 28, 2020
2 parents ea12d48 + f857f28 commit f21f69f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions mod/forum/tests/behat/edit_post_student.feature
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,16 @@ 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
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
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"

0 comments on commit f21f69f

Please sign in to comment.