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.
This commit is contained in:
David Monllao 2013-11-05 17:13:20 +08:00
parent a80af8a652
commit a57263d19d

View File

@ -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"
Then I should see "Course Badge"