mirror of
https://github.com/moodle/moodle.git
synced 2025-05-01 22:18:03 +02:00
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:
parent
47d5c29202
commit
0db240c1dd
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user