You are here

public function FeatureContext::assertVisitorActionEditLinkClick in Acquia Lift Connector 7.2

@When I click the visitor action edit link for the :action action

File

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

Class

FeatureContext
Defines application features from the specific context.

Code

public function assertVisitorActionEditLinkClick($action_name) {
  $element = $this
    ->getVisitorActionEditLink($action_name);
  if (empty($element)) {
    throw new \Exception(sprintf('The edit link for %s action was not found in the %s region on page %s', $action_name, 'campaign_workflow_form', $this
      ->getSession()
      ->getCurrentUrl()));
  }
  $element
    ->click();
}