Skip to content

Commit

Permalink
Merge branch 'MDL-60469-32' of git://github.com/andrewnicols/moodle i…
Browse files Browse the repository at this point in the history
…nto MOODLE_32_STABLE
  • Loading branch information
David Monllao committed Oct 19, 2017
2 parents 04b1f42 + 6df049f commit 4e41d6c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/tests/behat/behat_forms.php
Expand Up @@ -51,14 +51,7 @@ class behat_forms extends behat_base {
* @param string $button
*/
public function press_button($button) {

// Ensures the button is present.
$buttonnode = $this->find_button($button);
// Focus on button to ensure it is in viewport, before pressing it.
if ($this->running_javascript()) {
$buttonnode->focus();
}
$buttonnode->press();
$this->execute('behat_general::i_click_on', [$button, 'button']);
}

/**
Expand Down

0 comments on commit 4e41d6c

Please sign in to comment.