mirror of
https://github.com/moodle/moodle.git
synced 2025-08-02 15:49:43 +02:00
MDL-66979 behat: Use tab to blur current focus
The focus should be on something, rather than removed. The way in which focus removal works can lead to side effects.
This commit is contained in:
parent
fd5621554a
commit
74a86acc8d
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ class behat_enrol extends behat_base {
|
|||
|
||||
// Ensure we get button in focus, before pressing button.
|
||||
if ($this->running_javascript()) {
|
||||
$this->execute("behat_general::i_take_focus_off_field", array(get_string('addinstance', 'enrol'), "button"));
|
||||
$this->execute('behat_general::i_press_named_key', ['', 'tab']);
|
||||
}
|
||||
|
||||
// Save changes.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue