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:
@@ -35,7 +35,7 @@ const SCREENSHOT_PASSWORD = process.env.SCREENSHOT_PASSWORD || process.env.PASSW
|
||||
const SCREENSHOT_USERNAME = process.env.SCREENSHOT_USERNAME || process.env.USERNAME_ADF;
|
||||
|
||||
const EXTERNAL_ACS_HOST = process.env.EXTERNAL_ACS_HOST;
|
||||
const LOG_LEVEL = process.env.LOG_LEVEL || 'ERROR' ;
|
||||
const LOG_LEVEL = process.env.LOG_LEVEL || 'ERROR';
|
||||
|
||||
const appConfig = {
|
||||
"log": LOG_LEVEL,
|
||||
@@ -117,4 +117,9 @@ module.exports = {
|
||||
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 { Logger } from './logger';
|
||||
|
||||
const DEFAULT_TIMEOUT = global['TestConfig'] ? global['TestConfig'].main.timeout : 20000;
|
||||
const NOT_VISIBLE_DEFAULT_TIMEOUT = global['TestConfig'] ? global['TestConfig'].main.timeout : 2000;
|
||||
const DEFAULT_TIMEOUT = browser.testConfig.timeouts.visible_timeout ? browser.testConfig.timeouts.visible_timeout : 20000;
|
||||
const NOT_VISIBLE_DEFAULT_TIMEOUT = browser.testConfig.timeouts.no_visible_timeout ? browser.testConfig.timeouts.no_visible_timeout : 20000;
|
||||
|
||||
export class BrowserVisibility {
|
||||
|
||||
|
Reference in New Issue
Block a user