Skip to content

Commit

Permalink
321
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemanrubia committed Oct 3, 2024
1 parent d1d30f7 commit 21f6c67
Showing 1 changed file with 38 additions and 28 deletions.
66 changes: 38 additions & 28 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,68 +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_16_4: {
base: "SauceLabs",
browserName: "safari",
platform: "macOS 10.13",
version: "16.4"
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",
platformName: "iOS",
browserName: "Safari",
deviceName: "iPhone 15 Simulator",
platformVersion: "17.0",
automationName: "XCUITest"
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 @@ -98,7 +108,7 @@ if (process.env.SAUCE_ACCESS_KEY) {
idleTimeout: 600,
commandTimeout: 600,
maxDuration: 900,
build: buildId(),
build: buildId()
}
}

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

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

0 comments on commit 21f6c67

Please sign in to comment.