You are here

public function FeatureContext::afterJavascriptStep in Acquia Lift Connector 7

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

For javascript enabled scenarios, always wait for AJAX after clicking.

@AfterStep

File

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

Class

FeatureContext
Defines application features from the specific context.

Code

public function afterJavascriptStep($event) {
  $text = $event
    ->getStep()
    ->getText();
  if (preg_match('/(follow|press|click|submit)/i', $text)) {
    $this
      ->spinUntilAjaxIsFinished();
  }
}