MDL-45164 behat: Add a wait to avoid random failures

It may fail in fast systems as the JS animation
to remove the delete comment may be slower than
the following steps where we check that the element
is not there anymore.
This commit is contained in:
David Monllao 2014-04-27 07:44:15 +07:00
parent a0461340ff
commit 2353a68fa8

View File

@ -31,6 +31,8 @@ Feature: In an assignment, students can comment in their submissions
Then I should see "First student comment"
And the field "content" matches value "Add a comment..."
And I follow "Delete this comment"
# Wait for the animation to finish.
And I wait "2" seconds
And I set the field "content" to "Second student comment"
And I follow "Save comment"
And I should see "Second student comment"