public function TestSubContext::iWaitForAjax in Panopoly 7
Same name and namespace in other branches
- 8.2 modules/panopoly/panopoly_test/behat/steps/panopoly_test.behat.inc \TestSubContext::iWaitForAjax()
Wait for AJAX to finish.
@Given I wait for AJAX
1 call to TestSubContext::iWaitForAjax()
- TestSubContext::afterStepWaitForJavascript in modules/
panopoly/ panopoly_test/ behat/ steps/ panopoly_test.behat.inc - After every step in a @javascript scenario, we want to wait for AJAX loading to finish.
File
- modules/
panopoly/ panopoly_test/ behat/ steps/ panopoly_test.behat.inc, line 677 - Provide Behat step-definitions for generic Panopoly tests.
Class
Code
public function iWaitForAjax() {
$this
->getSession()
->wait(5000, 'typeof jQuery !== "undefined" && jQuery.active === 0');
}