mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
remove global configuration and add timeout configuration
This commit is contained in:
@@ -117,4 +117,9 @@ module.exports = {
|
|||||||
host: EXTERNAL_ACS_HOST,
|
host: EXTERNAL_ACS_HOST,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
timeouts: {
|
||||||
|
visible_timeout: 20000,
|
||||||
|
no_visible_timeout: 20000
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@@ -18,8 +18,8 @@
|
|||||||
import { browser, by, element, ElementFinder, protractor } from 'protractor';
|
import { browser, by, element, ElementFinder, protractor } from 'protractor';
|
||||||
import { Logger } from './logger';
|
import { Logger } from './logger';
|
||||||
|
|
||||||
const DEFAULT_TIMEOUT = global['TestConfig'] ? global['TestConfig'].main.timeout : 20000;
|
const DEFAULT_TIMEOUT = browser.testConfig.timeouts.visible_timeout ? browser.testConfig.timeouts.visible_timeout : 20000;
|
||||||
const NOT_VISIBLE_DEFAULT_TIMEOUT = global['TestConfig'] ? global['TestConfig'].main.timeout : 2000;
|
const NOT_VISIBLE_DEFAULT_TIMEOUT = browser.testConfig.timeouts.no_visible_timeout ? browser.testConfig.timeouts.no_visible_timeout : 20000;
|
||||||
|
|
||||||
export class BrowserVisibility {
|
export class BrowserVisibility {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user