added homepage definition shortcut

This commit is contained in:
everzet
2012-06-19 18:36:45 +02:00
parent 300c475714
commit 6c292e7f02
2 changed files with 22 additions and 0 deletions

View File

@@ -92,6 +92,17 @@ trait MinkDictionary
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.
*