mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
commit
020c6fd479
@ -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"
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user