MDL-50315 behat: I am on site homepage behat step

This commit is contained in:
Ankit Agarwal
2015-05-26 12:19:58 +08:00
committed by David Monllao
parent 077eaa11a1
commit 4cd93d2596
+9
View 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.
*