Skip to content

Commit eee6327

Browse files
chore: action update
1 parent 14b711c commit eee6327

File tree

1 file changed

+13
-37
lines changed

1 file changed

+13
-37
lines changed

.github/workflows/ci_e2e_tests_android.yaml

Lines changed: 13 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ jobs:
201201
profile: pixel_6
202202
avd-name: test_device
203203
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -no-snapshot-save -no-snapshot-load
204-
disable-animations: true
205204
script: |
206205
# Setup debug directory
207206
mkdir -p debug-artifacts
@@ -303,59 +302,36 @@ jobs:
303302
sleep 5
304303
305304
# 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
309308
310309
# 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)
312311
313312
# 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
320316
321317
# 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)
323319
324320
# 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
327323
328324
# 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
331327
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..."
334329
335330
echo "Running Maestro native to native tests:"
336331
maestro test .maestro/native/connect_reject.yaml
337332
# maestro test .maestro/native/connect_confirm.yaml
338333
# maestro test .maestro/native/personal_sign_confirm.yaml
339334
# 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
359335
360336
- name: Upload debug artifacts
361337
if: always()

0 commit comments

Comments
 (0)