protected function CommerceWebDriverTestBase::waitForAjaxToFinish in Commerce Core 8.2
Waits for jQuery to become active and animations to complete.
Deprecated
in commerce:8.x-2.16 and is removed from commerce:3.x.
File
- tests/
src/ FunctionalJavascript/ CommerceWebDriverTestBase.php, line 177
Class
- CommerceWebDriverTestBase
- Provides a base class for Commerce functional tests.
Namespace
Drupal\Tests\commerce\FunctionalJavascriptCode
protected function waitForAjaxToFinish() {
$condition = "(0 === jQuery.active && 0 === jQuery(':animated').length)";
$this
->assertJsCondition($condition, 10000);
}