mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX behat CmsUiContext waits for cms-loading-container after step
This commit is contained in:
parent
08866f89d9
commit
f7846fc34c
@ -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"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user