FIX behat CmsUiContext waits for cms-loading-container after step

This commit is contained in:
Serge Latyntcev 2018-12-10 16:49:57 +13:00
parent 08866f89d9
commit f7846fc34c

View File

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