MDL-49412 behat: I am on site homepage behat step
[moodle.git] / lib / tests / behat / behat_general.php
index b12eb48..e467d45 100644 (file)
@@ -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.
      *