mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix test pck
This commit is contained in:
@@ -73,11 +73,16 @@ export class BrowserVisibility {
|
||||
* Wait for element to not be visible
|
||||
*/
|
||||
static waitUntilElementIsNotVisible(elementToCheck, waitTimeout: number = DEFAULT_TIMEOUT) {
|
||||
let isPresent = false;
|
||||
return browser.wait(() => {
|
||||
browser.waitForAngularEnabled();
|
||||
return elementToCheck.isPresent().then(function (present) {
|
||||
return !present;
|
||||
});
|
||||
|
||||
elementToCheck.isPresent().then(
|
||||
(present) => {
|
||||
isPresent = !present;
|
||||
}
|
||||
);
|
||||
return isPresent;
|
||||
}, waitTimeout, 'Element is Visible and it should not' + elementToCheck.locator());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user