@@ -201,7 +201,6 @@ jobs:
201
201
profile : pixel_6
202
202
avd-name : test_device
203
203
emulator-options : -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -no-snapshot-save -no-snapshot-load
204
- disable-animations : true
205
204
script : |
206
205
# Setup debug directory
207
206
mkdir -p debug-artifacts
@@ -303,59 +302,36 @@ jobs:
303
302
sleep 5
304
303
305
304
# Try to launch the wallet app manually before Maestro
306
- # echo "Attempting manual wallet launch..."
307
- # adb shell monkey -p com.walletconnect.web3wallet.rnsample.internal -c android.intent.category.LAUNCHER 1
308
- # sleep 10
305
+ echo "Attempting manual wallet launch..."
306
+ adb shell monkey -p com.walletconnect.web3wallet.rnsample.internal -c android.intent.category.LAUNCHER 1
307
+ sleep 10
309
308
310
309
# Check if wallet app is running
311
- # adb shell ps | grep -q "com.walletconnect.web3wallet.rnsample.internal" || (echo "ERROR: Wallet app is not running after launch attempt" && adb shell am start -n com.walletconnect.web3wallet.rnsample.internal/com.walletconnect.web3wallet.rnsample.internal.MainActivity || true)
310
+ adb shell ps | grep -q "com.walletconnect.web3wallet.rnsample.internal" || (echo "ERROR: Wallet app is not running after launch attempt" && adb shell am start -n com.walletconnect.web3wallet.rnsample.internal/com.walletconnect.web3wallet.rnsample.internal.MainActivity || true)
312
311
313
312
# Try to launch the dapp app manually before Maestro
314
- # echo "Attempting manual dapp launch..."
315
- # adb shell monkey -p com.walletconnect.web3modal.rnsample.internal -c android.intent.category.LAUNCHER 1
316
- # sleep 10
317
-
318
- # Check if dapp app is running
319
- # sleep 10
313
+ echo "Attempting manual dapp launch..."
314
+ adb shell monkey -p com.walletconnect.web3modal.rnsample.internal -c android.intent.category.LAUNCHER 1
315
+ sleep 10
320
316
321
317
# Check if dapp app is running
322
- # adb shell ps | grep -q "com.walletconnect.web3modal.rnsample.internal" || (echo "ERROR: Dapp app is not running after launch attempt" && adb shell am start -n com.walletconnect.web3modal.rnsample.internal/com.walletconnect.web3modal.rnsample.internal.MainActivity || true)
318
+ adb shell ps | grep -q "com.walletconnect.web3modal.rnsample.internal" || (echo "ERROR: Dapp app is not running after launch attempt" && adb shell am start -n com.walletconnect.web3modal.rnsample.internal/com.walletconnect.web3modal.rnsample.internal.MainActivity || true)
323
319
324
320
# Take a screenshot to see current state
325
- # adb shell screencap /sdcard/app_state_before_maestro.png
326
- # adb pull /sdcard/app_state_before_maestro.png debug-artifacts/ || true
321
+ adb shell screencap /sdcard/app_state_before_maestro.png
322
+ adb pull /sdcard/app_state_before_maestro.png debug-artifacts/ || true
327
323
328
324
# Check current activity
329
- # echo "Current activity before Maestro:"
330
- # adb shell dumpsys activity activities | grep -E "mResumedActivity|mFocusedActivity" || true
325
+ echo "Current activity before Maestro:"
326
+ adb shell dumpsys activity activities | grep -E "mResumedActivity|mFocusedActivity" || true
331
327
332
- # DO NOT kill the app here - let's see if it's actually running properly
333
- # echo "App state check complete, proceeding with Maestro tests..."
328
+ echo "App state check complete, proceeding with Maestro tests..."
334
329
335
330
echo "Running Maestro native to native tests:"
336
331
maestro test .maestro/native/connect_reject.yaml
337
332
# maestro test .maestro/native/connect_confirm.yaml
338
333
# maestro test .maestro/native/personal_sign_confirm.yaml
339
334
# maestro test .maestro/native/personal_sign_reject.yaml
340
-
341
- # Stop logcat capture
342
- kill $LOGCAT_PID || true
343
-
344
- # Filter logcat for relevant info
345
- grep -E "walletconnect|WalletConnect|AndroidRuntime|System.err|ActivityManager" debug-artifacts/full-logcat.txt > debug-artifacts/filtered-logcat.txt || true
346
-
347
- - name : Analyze crash logs
348
- if : always()
349
- run : |
350
- if [ -f debug-artifacts/crashes.txt ] && [ -s debug-artifacts/crashes.txt ]; then
351
- echo "::error::App crashes detected:"
352
- cat debug-artifacts/crashes.txt
353
- fi
354
-
355
- if [ -f debug-artifacts/filtered-logcat.txt ]; then
356
- echo "Relevant log entries:"
357
- tail -n 100 debug-artifacts/filtered-logcat.txt
358
- fi
359
335
360
336
- name : Upload debug artifacts
361
337
if : always()
0 commit comments