From 50cd683080e5401c25bfef1a83abf28b1a4f8876 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Fri, 27 Sep 2019 23:09:59 +0100 Subject: [PATCH] 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 --- tests/selenium/wdio.conf.js | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.20.1