mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-49412 behat: I am on site homepage behat step
Part of MDL-45774.
This commit is contained in:
parent
7b05a0feb6
commit
7a437e3661
1 changed files with 9 additions and 0 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue