Repository navigation
test(mobile): fix the iOS Appium harness (WDA wrapper waits, remote Appium host, port from env) - #3717
Open
holmesworcester wants to merge 9 commits into
Open
test(mobile): fix the iOS Appium harness (WDA wrapper waits, remote Appium host, port from env)#3717holmesworcester wants to merge 9 commits into
holmesworcester wants to merge 9 commits into
Conversation
…S_PORT Sessions that share a host each need their own QSS fixture, but the Appium and community harness, the Android adb reverse route and the QSS-only backend all hardcoded port 3003. QUIET_QSS_PORT (default 3003, 1024-65535) now selects the loopback port; the QSS-only backend accepts ws://localhost:<port> for any such port. Adds a unit test that runs with a non-default port and wires it into the workflows that already run the sibling harness tests. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… reading for the Appium harness - appiumHost / deviceApp config so only the simulator and Appium run on the Mac - Mobile.screen(): WDA reports React Native layout wrappers as visible=false, so wait for existence on iOS - read the iOS bundle plists with Python when plutil is unavailable - run the guard tests under tsx so the shared selectors import resolves Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…nt` passes The lockfile had no VisionCamera entry, so the iOS Appium job failed at pod install before any test ran. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
holmesworcester
marked this pull request as ready for review
October 27, 2026 08:31
…ney fails at desktop-open Both CI lanes fail there with only an error class in the artifact; no invitation or token exists yet at that stage. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…rror lines from the desktop log on desktop-open failures Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… guard The webpack banner serialized requireQssOnlyEnvironment with toString(), which dropped the isAllowedEndpoint helper it now calls, so every QSS-only backend threw a ReferenceError at startup and the Appium desktop peer quit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rness # Conflicts: # packages/mobile/ios/Podfile.lock
| module.exports = { MARKER, ENDPOINT, requireQssOnlyEnvironment } | ||
| // The bundle banner runs this check before any bundled code, so it inlines every function the check calls. | ||
| function startupGuardSource() { | ||
| return `(function () { const ENDPOINT = ${JSON.stringify(ENDPOINT)}; ${isAllowedEndpoint.toString()} (${requireQssOnlyEnvironment.toString()})(process.env); })();` |
This branch has not been deployed
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.
What
Test-infrastructure changes for the mobile Appium harness (
packages/mobile/e2e/appium), found while runningtest:onboardingon an iOS simulator with the QSS fixture and desktop peer on a different machine:get-started-component,username-registration-component,terms-of-service-component,channels_list,chat_*) asvisible="false"even while every child on the screen is visible, soisDisplayed()never becomes true for them. NewMobile.screen(id)waits for the wrapper to exist on iOS and to be displayed on Android; interactive elements still usevisible(). The reason is in a code comment.appiumHostanddeviceAppconfig (the app's path on the Appium host), so only the simulator and Appium need to run on the Mac.plutilrequired on the test host.inspectIosBuildreads the bundle plists with Python when not on macOS.tsx(npm test), so the shared selectors import resolves.The QSS port comes from
QUIET_QSS_PORT(#3715), which this branch includes via a merge until #3715 lands.CI
appium-ios (onboarding)Its recent runs on develop-based branches fail before any test runs:
pod install --deploymentreports "There were changes to the podfile in deployment mode: A VisionCamera" becausepackages/mobile/ios/Podfile.lockon develop has no VisionCamera entry. See the follow-up commit for the lockfile refresh.How tested
npm testinpackages/mobile/e2e/appium: 27 pass, 2 skipped (macOS-only), 0 fail; new tests coverscreen()on both platforms and the config validation.