From 65c0e2b9b4b405416cd4ea9f21e876539c91f3f5 Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Fri, 9 Sep 2016 08:51:03 +0800 Subject: [PATCH] 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. --- blocks/recent_activity/tests/behat/structural_changes.feature | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blocks/recent_activity/tests/behat/structural_changes.feature b/blocks/recent_activity/tests/behat/structural_changes.feature index 4340c6046cc..14ffedd9ed3 100644 --- a/blocks/recent_activity/tests/behat/structural_changes.feature +++ b/blocks/recent_activity/tests/behat/structural_changes.feature @@ -158,7 +158,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"