Преглед изворни кода

Updated Android 4 SauceLabs configuration (#4672)

* update sauce config for android

SauceLabs has sunset all versions of Android 4 prior to 4.4, as
they are modernizing their infrastructure:

https://wiki.saucelabs.com/pages/viewpage.action?pageId=67012495

This means the previous Selendroid configuration must be changed
for Appium, the new platform for Android 4.4 testing.

* add --no-ssl-bump-domains flag to sauce config

To complicate matters even further, the new Android 4.4 appium
platform seems to surface an SSL error that prevents the karma
tests from running (unless you manually take over the device and
close the popup).

After 2 days of pain going back and forth with a SauceLabs support
tech, it seems that this flag fixes the issue... even though I
hope Google will fix their untrusted certificate authority issues
soon. Until then, this flag gets the job done.

* fix unexpected trailing comma linting error
Julian Lloyd пре 9 година
родитељ
комит
3549e73c03
1 измењених фајлова са 8 додато и 3 уклоњено
  1. 8 3
      build/karma.sauce.config.js

+ 8 - 3
build/karma.sauce.config.js

@@ -62,10 +62,12 @@ var batches = [
       browserName: 'iphone',
       browserName: 'iphone',
       version: '9.3'
       version: '9.3'
     },
     },
-    sl_android_4_2: {
+    sl_android_4_4: {
       base: 'SauceLabs',
       base: 'SauceLabs',
-      browserName: 'android',
-      version: '4.2'
+      browserName: 'Browser',
+      platform: 'Android',
+      version: '4.4',
+      device: 'Android Emulator'
     },
     },
     sl_android_5_1: {
     sl_android_5_1: {
       base: 'SauceLabs',
       base: 'SauceLabs',
@@ -88,6 +90,9 @@ module.exports = function (config) {
     sauceLabs: {
     sauceLabs: {
       testName: 'Vue.js unit tests',
       testName: 'Vue.js unit tests',
       recordScreenshots: false,
       recordScreenshots: false,
+      connectOptions: {
+        'no-ssl-bump-domains': 'all' // Ignore SSL error on Android emulator
+      },
       build: process.env.CIRCLE_BUILD_NUM || process.env.SAUCE_BUILD_ID || Date.now()
       build: process.env.CIRCLE_BUILD_NUM || process.env.SAUCE_BUILD_ID || Date.now()
     },
     },
     // mobile emulators are really slow
     // mobile emulators are really slow