Add homepage assertion

This commit is contained in:
Sanpi
2013-02-18 13:57:08 +01:00
parent 4fcc72c3b6
commit cd499a71b5
2 changed files with 20 additions and 0 deletions

View File

@@ -263,6 +263,16 @@ trait MinkDictionary
$this->assertSession()->addressEquals($this->locatePath($page));
}
/**
* Checks, that current page is the homepage.
*
* @Then /^(?:|I )should be on (?:|the )homepage$/
*/
public function assertHomepage()
{
$this->assertSession()->addressEquals($this->locatePath('/'));
}
/**
* Checks, that current page PATH matches regular expression.
*