From 0346be1656c6af0b3f42c3299ae7a6bde5b7f959 Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Thu, 3 Oct 2024 16:27:47 +0200 Subject: [PATCH] Bump safari and solano config --- karma.conf.js | 73 +++++++++++++++++++++++++++++---------------------- 1 file changed, 42 insertions(+), 31 deletions(-) diff --git a/karma.conf.js b/karma.conf.js index 9fe317624..1122f2c07 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -3,7 +3,12 @@ const config = { frameworks: [ "qunit" ], files: [ { pattern: "dist/test.js", watched: false }, - { pattern: "src/test_helpers/fixtures/*.png", watched: false, included: false, served: true } + { + pattern: "src/test_helpers/fixtures/*.png", + watched: false, + included: false, + served: true + } ], proxies: { "/test_helpers/fixtures/": "/base/src/test_helpers/fixtures/" @@ -24,67 +29,73 @@ const config = { captureTimeout: 240000, browserDisconnectTimeout: 240000, browserDisconnectTolerance: 3, - browserNoActivityTimeout: 300000, + browserNoActivityTimeout: 300000 } -/* eslint camelcase: "off", */ +/* eslint camelcase: "off" */ if (process.env.SAUCE_ACCESS_KEY) { config.customLaunchers = { sl_chrome_latest: { base: "SauceLabs", browserName: "chrome", - version: "latest" + browserVersion: "latest", + "sauce:options": {} }, sl_chrome_latest_i8n: { base: "SauceLabs", browserName: "chrome", - version: "latest", - chromeOptions: { + browserVersion: "latest", + "goog:chromeOptions": { args: [ "--lang=tr" ] - } + }, + "sauce:options": {} }, - // Context: - // https://github.com/karma-runner/karma-sauce-launcher/issues/275 - // https://saucelabs.com/blog/update-firefox-tests-before-oct-4-2022 sl_firefox_latest: { base: "SauceLabs", browserName: "firefox", browserVersion: "latest", - "moz:debuggerAddress": true + "moz:debuggerAddress": true, + "sauce:options": {} }, - sl_safari_12_1: { + sl_safari_16_4: { base: "SauceLabs", browserName: "safari", - platform: "macOS 10.13", - version: "12.1" + platformName: "macOS 10.13", + browserVersion: "16.4", + "sauce:options": {} }, sl_edge_latest: { base: "SauceLabs", - browserName: "microsoftedge", - platform: "Windows 10", - version: "latest" + browserName: "MicrosoftEdge", + platformName: "Windows 10", + browserVersion: "latest", + "sauce:options": {} }, sl_ios_latest: { base: "SauceLabs", - browserName: "safari", - platform: "ios", - device: "iPhone X Simulator", - version: "13.0" + platformName: "iOS", + browserName: "Safari", + deviceName: "iPhone 15 Simulator", + platformVersion: "17.0", + automationName: "XCUITest", + "sauce:options": {} }, sl_android_9: { base: "SauceLabs", - browserName: "chrome", - platform: "android", - device: "Android GoogleAPI Emulator", - version: "9.0" + platformName: "Android", + browserName: "Chrome", + deviceName: "Android GoogleAPI Emulator", + platformVersion: "9.0", + "sauce:options": {} }, sl_android_latest: { base: "SauceLabs", - browserName: "chrome", - platform: "android", - device: "Android GoogleAPI Emulator", - version: "12.0" + platformName: "Android", + browserName: "Chrome", + deviceName: "Android GoogleAPI Emulator", + platformVersion: "12.0", + "sauce:options": {} } } @@ -97,7 +108,7 @@ if (process.env.SAUCE_ACCESS_KEY) { idleTimeout: 600, commandTimeout: 600, maxDuration: 900, - build: buildId(), + build: buildId() } } @@ -108,6 +119,6 @@ function buildId() { : "" } -module.exports = function(karmaConfig) { +module.exports = function (karmaConfig) { karmaConfig.set(config) }