MDL-59534 feedback: avoid some randomness with behat test failures

This commit is contained in:
Eloy Lafuente (stronk7) 2017-07-13 20:08:33 +02:00
parent e80e4778c5
commit 1d52027e57

View file

@ -138,7 +138,12 @@ Feature: Mapping courses in a feedback
And I follow "Map feedback to courses" And I follow "Map feedback to courses"
And I set the field "Courses" to "Course 2" And I set the field "Courses" to "Course 2"
And I set the field "Courses" to "Course 3" And I set the field "Courses" to "Course 3"
# Weird solution to make the editable field to lose the focus
# but with the focus, "save changes" uses to fail because of
# the suggestions hiding the button.
And I press key "27" in the field "Courses"
And I press "Save changes" And I press "Save changes"
And I should see "Course mapping has been changed"
And I log out And I log out
And I log in as "user1" And I log in as "user1"