From ce3d50ccbe316e04d63a405685463d2a6451e5fc Mon Sep 17 00:00:00 2001 From: Daniel DeMicco Date: Thu, 8 Feb 2018 13:36:31 -0800 Subject: [PATCH] Chore: modify browser in codecept config (#643) --- codecept.conf.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/codecept.conf.js b/codecept.conf.js index 3e8ec4fba..488ec378f 100644 --- a/codecept.conf.js +++ b/codecept.conf.js @@ -1,4 +1,4 @@ -const DEFAULT_WAIT_TIME = 15000; // 15 seconds +const DEFAULT_WAIT_TIME = 90000; // 90 seconds const { SAUCE_USERNAME, SAUCE_ACCESS_KEY, @@ -13,9 +13,9 @@ const { const MOBILE_PLATFORMS = ['iOS', 'Android']; // Local selenium config -const webDriverIOlocal = { +const commonConfigObj = { + browser: BROWSER_NAME, url: 'http://localhost:8000', - browser: 'chrome', smartWait: DEFAULT_WAIT_TIME, restart: false, waitForTimeout: DEFAULT_WAIT_TIME @@ -23,7 +23,7 @@ const webDriverIOlocal = { const helperObj = {}; if (typeof SAUCE_USERNAME === 'undefined') { - helperObj.WebDriverIO = webDriverIOlocal; + helperObj.WebDriverIO = commonConfigObj; } else { // Common saucelab config const sauceObj = { @@ -40,7 +40,7 @@ if (typeof SAUCE_USERNAME === 'undefined') { } }; - const mixedInSauceObj = Object.assign({}, webDriverIOlocal, sauceObj); + const mixedInSauceObj = Object.assign({}, commonConfigObj, sauceObj); if (MOBILE_PLATFORMS.indexOf(BROWSER_PLATFORM) === -1) { // webdriver (desktop) Object.assign(sauceObj.desiredCapabilities, { @@ -52,7 +52,8 @@ if (typeof SAUCE_USERNAME === 'undefined') { Object.assign(sauceObj.desiredCapabilities, { platformVersion: PLATFORM_VERSION, deviceName: DEVICE_NAME, - deviceOrientation: 'portrait' + deviceOrientation: 'portrait', + appiumVersion: '1.7.2' }); helperObj.Appium = mixedInSauceObj; }