MDL-51918 behat: Key press should be down-press-up

As we simulate real user key press event, the
event should down followed by press and then up key
This commit is contained in:
rajesh Taneja 2015-11-05 09:15:41 +08:00
parent 47d5c29202
commit 0db240c1dd

View File

@ -106,7 +106,9 @@ class behat_form_field {
// using the generic behat_form_field is because we are
// dealing with a fgroup element.
$instance = $this->guess_type();
return $instance->field->keyPress($char, $modifier);
$instance->field->keyDown($char, $modifier);
$instance->field->keyPress($char, $modifier);
$instance->field->keyUp($char, $modifier);
}
/**