Skip to content

Commit

Permalink
Bump safari and solano config
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemanrubia committed Oct 3, 2024
1 parent 4231bba commit 0346be1
Showing 1 changed file with 42 additions and 31 deletions.
73 changes: 42 additions & 31 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand All @@ -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": {}
}
}

Expand All @@ -97,7 +108,7 @@ if (process.env.SAUCE_ACCESS_KEY) {
idleTimeout: 600,
commandTimeout: 600,
maxDuration: 900,
build: buildId(),
build: buildId()
}
}

Expand All @@ -108,6 +119,6 @@ function buildId() {
: ""
}

module.exports = function(karmaConfig) {
module.exports = function (karmaConfig) {
karmaConfig.set(config)
}

0 comments on commit 0346be1

Please sign in to comment.