Skip to content

Commit

Permalink
123
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemanrubia committed Oct 3, 2024
1 parent 0346be1 commit 654adcb
Showing 1 changed file with 31 additions and 42 deletions.
73 changes: 31 additions & 42 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@ 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 @@ -29,73 +24,67 @@ 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",
browserVersion: "latest",
"sauce:options": {}
version: "latest"
},
sl_chrome_latest_i8n: {
base: "SauceLabs",
browserName: "chrome",
browserVersion: "latest",
"goog:chromeOptions": {
version: "latest",
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,
"sauce:options": {}
"moz:debuggerAddress": true
},
sl_safari_16_4: {
sl_safari_12_1: {
base: "SauceLabs",
browserName: "safari",
platformName: "macOS 10.13",
browserVersion: "16.4",
"sauce:options": {}
platform: "macOS 10.13",
version: "12.1"
},
sl_edge_latest: {
base: "SauceLabs",
browserName: "MicrosoftEdge",
platformName: "Windows 10",
browserVersion: "latest",
"sauce:options": {}
browserName: "microsoftedge",
platform: "Windows 10",
version: "latest"
},
sl_ios_latest: {
base: "SauceLabs",
platformName: "iOS",
browserName: "Safari",
deviceName: "iPhone 15 Simulator",
platformVersion: "17.0",
automationName: "XCUITest",
"sauce:options": {}
browserName: "safari",
platform: "ios",
device: "iPhone X Simulator",
version: "13.0"
},
sl_android_9: {
base: "SauceLabs",
platformName: "Android",
browserName: "Chrome",
deviceName: "Android GoogleAPI Emulator",
platformVersion: "9.0",
"sauce:options": {}
browserName: "chrome",
platform: "android",
device: "Android GoogleAPI Emulator",
version: "9.0"
},
sl_android_latest: {
base: "SauceLabs",
platformName: "Android",
browserName: "Chrome",
deviceName: "Android GoogleAPI Emulator",
platformVersion: "12.0",
"sauce:options": {}
browserName: "chrome",
platform: "android",
device: "Android GoogleAPI Emulator",
version: "12.0"
}
}

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

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

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

0 comments on commit 654adcb

Please sign in to comment.