private function FeatureContext::spinUntilAjaxIsFinished in Acquia Lift Connector 7
Same name and namespace in other branches
- 7.2 behat-tests/features/bootstrap/FeatureContext.php \FeatureContext::spinUntilAjaxIsFinished()
Spin until the Ajax is finished.
2 calls to FeatureContext::spinUntilAjaxIsFinished()
- FeatureContext::afterJavascriptStep in behat-tests/
features/ bootstrap/ FeatureContext.php - For javascript enabled scenarios, always wait for AJAX after clicking.
- FeatureContext::beforeJavascriptStep in behat-tests/
features/ bootstrap/ FeatureContext.php - For javascript enabled scenarios, always wait for AJAX before clicking.
File
- behat-tests/
features/ bootstrap/ FeatureContext.php, line 820
Class
- FeatureContext
- Defines application features from the specific context.
Code
private function spinUntilAjaxIsFinished() {
$assertionScript = '(typeof(jQuery)=="undefined" || (0 === jQuery.active && 0 === jQuery(\':animated\').length));';
$this
->spinJavaScriptEvaluation($assertionScript);
}