Merge pull request #8663 from open-sausages/pull/4.3/wait-for-loading-after-step

FIX behat CmsUiContext waits for cms-loading-container after step
This commit is contained in:
Guy Marriott 2018-12-12 18:26:31 +13:00 committed by GitHub
commit 020c6fd479
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,7 +58,10 @@ class CmsUiContext implements Context
$timeoutMs = $this->getMainContext()->getAjaxTimeout();
$this->getSession()->wait(
$timeoutMs,
"document.getElementsByClassName('cms-content-loading-overlay').length == 0"
"(".
"document.getElementsByClassName('cms-content-loading-overlay').length +".
"document.getElementsByClassName('cms-loading-container').length".
") == 0"
);
}