From: Timo Tijhof Date: Fri, 27 Sep 2019 22:09:59 +0000 (+0100) Subject: selenium: Restore sauce user/key configuration for wdio X-Git-Tag: 1.34.0-rc.0~43^2~2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=50cd683080e5401c25bfef1a83abf28b1a4f8876 selenium: Restore sauce user/key configuration for wdio I removed these in e78484109ae7 because they seemed redundant given that the library used by wdio-sauce-service already reads these when present. However, our current version of this package clobbers this unconditionally with config.user/config.key, thus not letting it reach that default. Also add sauceConnect:true which means developers can run localhost tests against sauce labs if they so choose. Change-Id: I8d31a23374b2b9b6cd6f1405c7a2f1001da08f1a --- diff --git a/tests/selenium/wdio.conf.js b/tests/selenium/wdio.conf.js index 72a89dd606..541d24dc1d 100644 --- a/tests/selenium/wdio.conf.js +++ b/tests/selenium/wdio.conf.js @@ -41,6 +41,9 @@ exports.config = { // See http://webdriver.io/guide/services/sauce.html // and https://github.com/bermi/sauce-connect-launcher#advanced-usage services: process.env.SAUCE_ACCESS_KEY ? [ 'sauce' ] : [], + user: process.env.SAUCE_USERNAME, + key: process.env.SAUCE_ACCESS_KEY, + sauceConnect: true, // ================== // Test Files