Skip to content

Commit 85dc7a7

Browse files
committed
WIP
1 parent ce0fe45 commit 85dc7a7

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

.github/workflows/e2e-tests-hybrid.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,10 @@ jobs:
264264
}
265265
trap cleanup EXIT INT TERM
266266
267-
# Override the wdio config to use our Appium server
268-
# Remove the appium service to prevent WebDriverIO from starting its own server
269-
sed -i '' 's/services: \[.appium.\]/services: []/' wdio.conf.ts
267+
# Try using WebDriverIO's built-in Appium service instead
268+
# This might be more reliable than our custom Appium setup
269+
echo "Using WebDriverIO's built-in Appium service..."
270+
# Don't remove the appium service - let WebDriverIO handle it
270271
271272
# Increase timeout settings for better reliability
272273
sed -i '' 's/connectionRetryTimeout: [0-9]*/connectionRetryTimeout: 300000/' wdio.conf.ts
@@ -289,7 +290,20 @@ jobs:
289290
grep -n -A1 -B1 "deviceName\|udid" wdio.conf.ts
290291
291292
# Add Appium capabilities to help with simulator boot issues
292-
sed -i '' 's/"appium:autoAcceptAlerts": true/"appium:autoAcceptAlerts": true,\n "appium:newCommandTimeout": 300,\n "appium:commandTimeouts": {"implicit": 30000},\n "appium:launchTimeout": 300000,\n "appium:deviceReadyTimeout": 300000,\n "appium:autoLaunch": false/' wdio.conf.ts
293+
sed -i '' 's/"appium:autoAcceptAlerts": true/"appium:autoAcceptAlerts": true,\n "appium:newCommandTimeout": 300,\n "appium:commandTimeouts": {"implicit": 30000},\n "appium:launchTimeout": 300000,\n "appium:deviceReadyTimeout": 300000,\n "appium:autoLaunch": false,\n "appium:noReset": true,\n "appium:fullReset": false/' wdio.conf.ts
294+
295+
# Try to launch the app manually to test simulator connectivity
296+
echo "Testing manual app launch..."
297+
xcrun simctl launch "$SIMULATOR_UDID" to.bitkit-regtest || echo "Manual launch failed"
298+
sleep 5
299+
300+
# Check if app is running
301+
echo "Checking if app is running..."
302+
xcrun simctl spawn "$SIMULATOR_UDID" launchctl list | grep bitkit || echo "App not running"
303+
304+
# Test XCUITest driver directly
305+
echo "Testing XCUITest driver..."
306+
xcrun simctl spawn "$SIMULATOR_UDID" xcrun simctl list devices | grep "$SIMULATOR_UDID"
293307
294308
# Pass everything through to WDIO/Mocha
295309
npm run e2e:ios -- "$@"

0 commit comments

Comments
 (0)