diff --git a/lib/tests/behat/behat_general.php b/lib/tests/behat/behat_general.php index 50e557d14d3..b4facb48d22 100644 --- a/lib/tests/behat/behat_general.php +++ b/lib/tests/behat/behat_general.php @@ -2031,6 +2031,16 @@ EOF; } } + /** + * Manually press enter key. + * + * @When /^I press enter/ + * @throws DriverException + */ + public function i_manually_press_enter() { + $this->execute('behat_general::i_press_named_key', ['', 'enter']); + } + /** * Visit a local URL relative to the behat root. *