MDL-55353 behat: Ensure teacher edit activity at different time

Recent activity is showing activities which were
updated since user last logged in and first modification
done on the activity. So ensure update happens at different
time than activity created.
This commit is contained in:
Rajesh Taneja
2016-09-09 10:16:34 +08:00
parent 2ab80152e2
commit a22a2b148d
@@ -156,7 +156,8 @@ Feature: View structural changes in recent activity block
And I should see "Added Forum" in the "Recent activity" "block"
And I should see "ForumNew" in the "Recent activity" "block"
And I log out
# Update forum as a teacher
# Update forum as a teacher after a second to ensure we have a new timestamp for recent activity.
And I wait "1" seconds
And I log in as "teacher1"
And I follow "Course 1"
And I follow "ForumNew"