diff --git a/.github/workflows/detox-ci.yml b/.github/workflows/detox-ci.yml index 88bca9e0de..3399cfc397 100644 --- a/.github/workflows/detox-ci.yml +++ b/.github/workflows/detox-ci.yml @@ -156,10 +156,10 @@ jobs: $ANDROID_HOME/platform-tools/adb devices adb logcat -c adb logcat *:E & - mkdir ./temp - curl -f -o ./temp/test-butler-app.apk https://repo1.maven.org/maven2/com/linkedin/testbutler/test-butler-app/2.2.1/test-butler-app-2.2.1.apk - adb install ./temp/test-butler-app.apk || adb install ./e2e/test-butler-app.apk yarn detox test -c android.debug --loglevel verbose --record-logs failing --record-timeline all --take-screenshots failing + # mkdir ./temp + # curl -f -o ./temp/test-butler-app.apk https://repo1.maven.org/maven2/com/linkedin/testbutler/test-butler-app/2.2.1/test-butler-app-2.2.1.apk + # adb install ./temp/test-butler-app.apk || adb install ./e2e/test-butler-app.apk - name: Run Android tests (with Test Butler) if: steps.avd-cache.outputs.cache-hit == 'true' diff --git a/e2e/setup.js b/e2e/setup.js index 7fcfdf0a2c..a3e51fc413 100644 --- a/e2e/setup.js +++ b/e2e/setup.js @@ -1,5 +1,5 @@ import { execSync } from "child_process"; -// import { device } from "detox"; +import { device } from "detox"; import * as bridge from "./bridge/server"; // eslint-disable-next-line no-undef @@ -13,13 +13,6 @@ beforeAll(async () => { console.log("==============> SETTING UP DEMO MODE"); setupDemoModeForScreenshots(); - - // return device.launchApp({ - // delete: true, - // launchArgs: { - // detoxURLBlacklistRegex: ".*://explorers.api.live.ledger.com/.*", - // }, - // }); }); // eslint-disable-next-line no-undef @@ -34,7 +27,9 @@ function setupDemoModeForScreenshots() { execSync( 'xcrun simctl status_bar "iPhone 11 Pro" override --time "12:00" --batteryState charged --batteryLevel 100 --wifiBars 3 --cellularMode active --cellularBars 4', ); - } else { + } + + if (device.getPlatform() === "android") { // enter demo mode execSync("adb shell settings put global sysui_demo_allowed 1"); // display time 12:00