added homepage definition shortcut
This commit is contained in:
@@ -23,6 +23,17 @@ use Behat\Behat\Context\TranslatedContextInterface,
|
|||||||
*/
|
*/
|
||||||
class MinkContext extends RawMinkContext implements TranslatedContextInterface
|
class MinkContext extends RawMinkContext implements TranslatedContextInterface
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Opens homepage.
|
||||||
|
*
|
||||||
|
* @Given /^(?:|I )am on homepage$/
|
||||||
|
* @When /^(?:|I )go to homepage$/
|
||||||
|
*/
|
||||||
|
public function iAmOnHomepage()
|
||||||
|
{
|
||||||
|
$this->getSession()->visit($this->locatePath('/'));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Opens specified page.
|
* Opens specified page.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -92,6 +92,17 @@ trait MinkDictionary
|
|||||||
return $this->getMink()->assertSession($name);
|
return $this->getMink()->assertSession($name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Opens homepage.
|
||||||
|
*
|
||||||
|
* @Given /^(?:|I )am on homepage$/
|
||||||
|
* @When /^(?:|I )go to homepage$/
|
||||||
|
*/
|
||||||
|
public function iAmOnHomepage()
|
||||||
|
{
|
||||||
|
$this->getSession()->visit($this->locatePath('/'));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Opens specified page.
|
* Opens specified page.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user