Skip to content

Commit caae679

Browse files
committed
WIP
1 parent 4850707 commit caae679

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ jobs:
301301
grep -A 20 -B 5 "capabilities:" wdio.conf.ts
302302
303303
# Add Appium capabilities to help with simulator boot issues
304-
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
304+
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:wdaLaunchTimeout": 300000,\n "appium:wdaConnectionTimeout": 300000,\n "appium:useNewWDA": true,\n "appium:autoLaunch": false,\n "appium:noReset": true,\n "appium:fullReset": false/' wdio.conf.ts
305305
306306
# Try to launch the app manually to test simulator connectivity
307307
echo "Testing manual app launch..."
@@ -320,6 +320,14 @@ jobs:
320320
echo "Killing manually launched app..."
321321
xcrun simctl terminate "$SIMULATOR_UDID" to.bitkit-regtest || echo "App not running"
322322
323+
# Reset simulator to ensure clean state for WebDriverAgent
324+
echo "Resetting simulator for WebDriverAgent..."
325+
xcrun simctl shutdown "$SIMULATOR_UDID" || true
326+
sleep 5
327+
xcrun simctl boot "$SIMULATOR_UDID" || true
328+
sleep 10
329+
echo "Simulator reset complete"
330+
323331
# Add more debugging before running tests
324332
echo "=== Pre-test Debugging ==="
325333
echo "Current directory: $(pwd)"

0 commit comments

Comments
 (0)