selenium: Restore sauce user/key configuration for wdio
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 27 Sep 2019 22:09:59 +0000 (23:09 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Sun, 29 Sep 2019 00:39:21 +0000 (01:39 +0100)
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

index 72a89dd..541d24d 100644 (file)
@@ -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