public function FeatureContext::beforeJavascriptStep in Acquia Lift Connector 7
Same name and namespace in other branches
- 7.2 behat-tests/features/bootstrap/FeatureContext.php \FeatureContext::beforeJavascriptStep()
For javascript enabled scenarios, always wait for AJAX before clicking.
@BeforeStep
File
- behat-tests/
features/ bootstrap/ FeatureContext.php, line 124
Class
- FeatureContext
- Defines application features from the specific context.
Code
public function beforeJavascriptStep($event) {
$text = $event
->getStep()
->getText();
if (preg_match('/(follow|press|click|submit)/i', $text)) {
$this
->spinUntilAjaxIsFinished();
}
}