Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Update Saucelabs config to use Andoid 13 and 14 #55710

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
42 changes: 28 additions & 14 deletions browser-providers.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,47 @@
// If a category becomes empty (e.g. BS and required), then the corresponding job must be commented
// out in the CI configuration.
const config = {
'Android11': {unitTest: {target: 'SL', required: true}},
'Android12': {unitTest: {target: 'SL', required: true}},
'Android13': {unitTest: {target: 'SL', required: true}},
'Android14': {unitTest: {target: 'SL', required: true}},
};

/** Whether browsers should be remotely acquired in debug mode. */
const debugMode = false;

// Karma-sauce-launcher isn't really maintained and doesn't support officially appium2
// Looking at the source code https://github.com/karma-runner/karma-sauce-launcher/blob/69dcb822a45d29e57297b0eda7af4123ae55aafd/src/process-config.ts#L60
// We can force the config to be recognized as W3C by setting a browserVersion property
const browserVersion = 'latest';

// Specific platform configuration can be found at:
// https://saucelabs.com/platform/platform-configurator
const customLaunchers = {
'SL_ANDROID11': {
'SL_ANDROID13': {
base: 'SauceLabs',
browserName: 'Chrome',
platformName: 'Android',
platformVersion: '11.0',
deviceName: 'Google Pixel 3a GoogleAPI Emulator',
appiumVersion: '1.20.2',
extendedDebugging: debugMode,
browserName: 'Chrome',
browserVersion,
'appium:deviceName': 'Google Pixel 5a GoogleAPI Emulator',
'appium:platformVersion': '13.0',
'appium:automationName': 'uiautomator2',
'sauce:options': {
appiumVersion: '2.0.0',
extendedDebugging: debugMode,
},
},
'SL_ANDROID12': {

'SL_ANDROID14': {
base: 'SauceLabs',
browserName: 'Chrome',
platformName: 'Android',
platformVersion: '12.0',
deviceName: 'Google Pixel 4a (5G) GoogleAPI Emulator',
appiumVersion: '1.22.1',
extendedDebugging: debugMode,
browserName: 'Chrome',
browserVersion,
'appium:deviceName': 'Google Pixel 6 Pro GoogleAPI Emulator',
'appium:platformVersion': '14.0',
'appium:automationName': 'uiautomator2',
'sauce:options': {
appiumVersion: '2.0.0',
extendedDebugging: debugMode,
},
},
};

Expand Down