public function FeatureContext::assertLinkVisibleRegion in Acquia Lift Connector 7
Same name and namespace in other branches
- 7.2 behat-tests/features/bootstrap/FeatureContext.php \FeatureContext::assertLinkVisibleRegion()
@Then I should visibly see the link :link in the :region( region)
Throws
\Exception If region or link within it cannot be found or is hidden.
File
- behat-tests/
features/ bootstrap/ FeatureContext.php, line 457
Class
- FeatureContext
- Defines application features from the specific context.
Code
public function assertLinkVisibleRegion($link, $region) {
$result = $this
->findLinkInRegion($link, $region);
if (empty($result) || !$result
->isVisible()) {
throw new \Exception(sprintf('No link to "%s" in the "%s" region on the page %s', $link, $region, $this
->getSession()
->getCurrentUrl()));
}
}