You are here

public function FeatureContext::assertRegionVariationLinkClick in Acquia Lift Connector 7

Same name and namespace in other branches
  1. 7.2 behat-tests/features/bootstrap/FeatureContext.php \FeatureContext::assertRegionVariationLinkClick()

@When I click :link link for the :variation_set set :variation variation

Throws

\Exception If the menu or link cannot be found.

File

behat-tests/features/bootstrap/FeatureContext.php, line 357

Class

FeatureContext
Defines application features from the specific context.

Code

public function assertRegionVariationLinkClick($link, $variation_set, $variation) {
  $element = $this
    ->assertRegionVariationHasLink($variation_set, $variation, $link);
  if (!empty($element)) {
    $element
      ->click();
  }
}