Permalink
Browse files

Merge branch 'MDL-60469-33' of git://github.com/andrewnicols/moodle i…

…nto MOODLE_33_STABLE
  • Loading branch information...
dmonllao committed Oct 19, 2017
2 parents fc4d0e7 + 0d18af4 commit 4b8c4280470b2509b115e38bc8a3292c1892cc62
Showing with 1 addition and 8 deletions.
  1. +1 −8 lib/tests/behat/behat_forms.php
@@ -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']);
}
/**

0 comments on commit 4b8c428

Please sign in to comment.