diff --git a/lib/tests/behat/behat_general.php b/lib/tests/behat/behat_general.php index b12eb48982b..e467d458d13 100644 --- a/lib/tests/behat/behat_general.php +++ b/lib/tests/behat/behat_general.php @@ -78,6 +78,15 @@ class behat_general extends behat_base { $this->getSession()->visit($this->locate_path('/')); } + /** + * Opens Moodle site homepage. + * + * @Given /^I am on site homepage$/ + */ + public function i_am_on_site_homepage() { + $this->getSession()->visit($this->locate_path('/?redirect=0')); + } + /** * Reloads the current page. *