mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
BasicContext->stepPageCantBeFound
This commit is contained in:
parent
d673fe3ac7
commit
9d73942bbd
@ -253,6 +253,20 @@ JS;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @Given /^the page can't be found/
|
||||
*/
|
||||
public function stepPageCantBeFound()
|
||||
{
|
||||
$page = $this->getSession()->getPage();
|
||||
assertTrue(
|
||||
// Content from ErrorPage default record
|
||||
$page->hasContent('Page not found')
|
||||
// Generic ModelAsController message
|
||||
|| $page->hasContent('The requested page could not be found')
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Given /^I wait (?:for )?([\d\.]+) second(?:s?)$/
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user