From 1d52027e57ac1a10a8c29ab5db27fff586ba25e9 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Thu, 13 Jul 2017 20:08:33 +0200 Subject: [PATCH] MDL-59534 feedback: avoid some randomness with behat test failures --- mod/feedback/tests/behat/coursemapping.feature | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mod/feedback/tests/behat/coursemapping.feature b/mod/feedback/tests/behat/coursemapping.feature index 8db8432c514..12fba55182e 100644 --- a/mod/feedback/tests/behat/coursemapping.feature +++ b/mod/feedback/tests/behat/coursemapping.feature @@ -138,7 +138,12 @@ Feature: Mapping courses in a feedback And I follow "Map feedback to courses" And I set the field "Courses" to "Course 2" 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 should see "Course mapping has been changed" And I log out And I log in as "user1"