Permalink
Browse files

Merge branch 'MDL-60469-master' of git://github.com/andrewnicols/moodle

  • Loading branch information...
dmonllao committed Oct 19, 2017
2 parents a0b417d + de316e8 commit 0a1a56307b9c4e932dc2ab7948f25b38be2024a0
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 0a1a563

Please sign in to comment.