diff --git a/test/wdio.config.js b/test/wdio.config.js index 843336ea..30acdb91 100644 --- a/test/wdio.config.js +++ b/test/wdio.config.js @@ -28,29 +28,55 @@ const sauceConfig = { capabilities: [ { browserName: 'chrome', + browserVersion: 'latest', platformName: 'Windows 10', + + // Configure Sauce Labs with extended debugging 'sauce:options': { - build: buildNumber + build: buildNumber, + extendedDebugging: true } }, { browserName: 'firefox', browserVersion: '55', platformName: 'Windows 10', + + // Configure Firefox profile for extended debugging + 'mozz:firefoxOptions': { + 'profile': SAUCE_BUILD_NUMBER, + 'args': [ + '-start-debugger-server', + '9222' + ], + prefs: { + 'devtools.debugger.remote-enabled': true, + 'devtools.debugger.prompt-connection': false, + 'devtools.chrome.enabled': true + } + }, + + // Configure Sauce Labs with extended debugging 'sauce:options': { - build: buildNumber + build: buildNumber, + extendedDebugging: true } }, { browserName: 'internet explorer', - browserVersion: '11.285', + browserVersion: 'latest', platformName: 'Windows 10', + + // Configure Sauce Labs with extended debugging 'sauce:options': { - build: buildNumber + build: buildNumber, + extendedDebugging: true } } ], - services: services.concat([['sauce', { sauceConnect: true }]]) + + // Add Sauce Labs service + services: services.concat('sauce') } const puppeteerConfig = {