fix:[iOS 17+] Appium should not overrride sauce:options cap with prefix#5202
Merged
kobenguyent merged 1 commit intocodeceptjs:3.xfrom Sep 24, 2025
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
Fixes an issue where the Appium helper was incorrectly prefixing the sauce:options capability with appium:, causing test failures on iOS 17+ devices using SauceLabs cloud provider. The fix prevents the automatic prefixing of cloud provider-specific capabilities that should remain in their original format.
- Added exception for
sauce:optionscapability to prevent automaticappium:prefixing - Ensures cloud provider capabilities maintain their required format for proper communication
- Fixes compatibility issue with WDIO v9 upgrade affecting iOS 17+ test execution
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation/Description of the PR
Appium: {
"appiumV2": true,
"protocol": "https",
"host": "ondemand.eu-central-1.saucelabs.com",
"region": "eu",
"port": 443,
"path": "/wd/hub",
"user": "mikhail.yesipchuk",
"key": "...",
"waitForTimeout": 5000,
"smartWait": 3000,
"app": "storage:filename=.ipa",
"platform": "iOS",
"restart": false,
"reuseSession": false,
"desiredCapabilities": {
"platformName": "iOS",
"appium:app": "storage:filename=.ipa",
"appium:automationName": "XCUITest",
"appium:platformVersion": "18",
"appium:deviceName": "iPhone 1.*",
"appium:language": "en",
"appium:locale": "en_GB",
"sauce:options": {
"name": "Mobile Automation Test - iOS",
"appiumVersion": "latest",
"phoneOnly": true,
"networkCapture": false,
},
"appium:noReset": true,
"appium:fullReset": false,
"appium:waitForIdleTimeout": 0,
"appium:newCommandTimeout": 90,
"appium:autoAcceptAlerts": true,
"appium:useNewWDA": false
}
}
Note: issue happens after update wdio from v8 to v9
Applicable helpers:
Type of change
Checklist:
npm run docs)npm run lint)npm test)Test run:
220 passing (4m)
1 pending
1 failing
should run tests with pool mode:
Uncaught Error: expect(received).toContain(expected) // indexOf
Expected substring: "Scenario Steps:"
Received string: "CodeceptJS v3.7.5 #StandWithUkraine