diff --git a/lib/behat/form_field/behat_form_autocomplete.php b/lib/behat/form_field/behat_form_autocomplete.php index 4d56560560b..8b1d39080a0 100644 --- a/lib/behat/form_field/behat_form_autocomplete.php +++ b/lib/behat/form_field/behat_form_autocomplete.php @@ -86,6 +86,7 @@ class behat_form_autocomplete extends behat_form_text { $this->wait_for_pending_js(); $this->key_press(27); + $this->wait_for_pending_js(); } } }