MDL-50315 behat: I am on site homepage behat step
This commit is contained in:
committed by
David Monllao
parent
077eaa11a1
commit
4cd93d2596
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user