diff --git a/.github/workflows/e2e-detox-android-template.yml b/.github/workflows/e2e-detox-android-template.yml index e12afd3850..2ce4635a1c 100644 --- a/.github/workflows/e2e-detox-android-template.yml +++ b/.github/workflows/e2e-detox-android-template.yml @@ -204,14 +204,16 @@ jobs: echo "y" | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install 'system-images;android-31;google_apis;x86_64' echo "no" | $ANDROID_HOME/cmdline-tools/latest/bin/avdmanager create avd -n pixel_6 -k 'system-images;android-31;google_apis;x86_64' --force --device "pixel_6" echo "Emulator created successfully" - nohup $ANDROID_HOME/emulator/emulator -avd pixel_6 -no-snapshot -netdelay none -netspeed full -no-audio -no-boot-anim -accel on -gpu swiftshader_indirect -qemu -m 4096 > /dev/null 2>&1 & + # nohup $ANDROID_HOME/emulator/emulator -avd pixel_6 -no-snapshot -netdelay none -netspeed full -no-audio -no-boot-anim -accel on -gpu swiftshader_indirect -qemu -m 8192 > /dev/null 2>&1 & + nohup $ANDROID_HOME/emulator/emulator -avd pixel_6 -no-snapshot -netdelay none -netspeed full -no-audio -no-boot-anim -accel on -gpu swiftshader_indirect -no-window -qemu -m 8192 > /dev/null 2>&1 & + $ANDROID_HOME/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\''\r'\'') ]]; do sleep 1; done' $ANDROID_HOME/platform-tools/adb devices $ANDROID_HOME/platform-tools/adb shell input keyevent 82 $ANDROID_HOME/platform-tools/adb shell settings put global window_animation_scale 0 $ANDROID_HOME/platform-tools/adb shell settings put global transition_animation_scale 0 $ANDROID_HOME/platform-tools/adb shell settings put global animator_duration_scale 0 - sleep 60 + sleep 90 screencapture emulator-macos-13.jpg $ANDROID_HOME/platform-tools/adb exec-out screencap -p > emulator-macos-13.png @@ -227,6 +229,7 @@ jobs: - name: Run Android Detox E2E Tests on macOS run: | + adb shell am start -W -n com.mattermost.rnbeta/com.mattermost.rnbeta.MainActivity cd detox && npm run e2e:android-test -- ${{ matrix.specs }} - name: Upload Android Test Report