Commit a57263d1 authored by David Monllaó's avatar David Monllaó
Browse files

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.
parent a80af8a6
......@@ -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"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment