From a57263d19db89badec7fe890c257558efdb8189c Mon Sep 17 00:00:00 2001 From: David Monllao Date: Tue, 5 Nov 2013 17:13:20 +0800 Subject: [PATCH] MDL-42332 behat: Adding a wait to let AJAX finish the request The Mark as completed performs an AJAX request, we need to give time to let it finish. --- badges/tests/behat/award_badge.feature | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/badges/tests/behat/award_badge.feature b/badges/tests/behat/award_badge.feature index 7cdd2dd090f..d34d36e5201 100644 --- a/badges/tests/behat/award_badge.feature +++ b/badges/tests/behat/award_badge.feature @@ -172,6 +172,7 @@ Feature: Award badges And I follow "Home" And I follow "Course 1" And I press "Mark as complete: Test assignment name" + And I wait "2" seconds And I expand "My profile" node And I follow "My badges" Then I should see "Course Badge" @@ -247,4 +248,4 @@ Feature: Award badges And I log in as "student1" And I expand "My profile" node And I follow "My badges" - Then I should see "Course Badge" \ No newline at end of file + Then I should see "Course Badge"