diff --git a/.detoxrc.js b/.detoxrc.js index df0998999..847663d60 100644 --- a/.detoxrc.js +++ b/.detoxrc.js @@ -1,4 +1,4 @@ -const reversePorts = [80, 8080, 9735, 10009, 28334, 28335, 28336, 39388, 43782, 60001]; +const reversePorts = [80, 8080, 8081, 9735, 10009, 28334, 28335, 28336, 39388, 43782, 60001]; /** @type {Detox.DetoxConfig} */ diff --git a/.github/workflows/e2e-android.yml b/.github/workflows/e2e-android.yml index 81b7fca14..7986fd16e 100644 --- a/.github/workflows/e2e-android.yml +++ b/.github/workflows/e2e-android.yml @@ -98,7 +98,7 @@ jobs: top -l 1 | grep -E "^CPU|^Phys" ps x -o rss,vsz,command | awk 'NR>1 {$1=int($1/1024)"M"; $2=int($2/1024)"M";}{ print ;}' - - name: Test backup + - name: Test onboarding uses: reactivecircus/android-emulator-runner@v2 with: api-level: 31 @@ -115,332 +115,361 @@ jobs: sleep 1 adb root echo "::group::attempt 1" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/backup.e2e.js || true + yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/onboarding.e2e.js || true echo "::endgroup::" echo "::group::attempt 2" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/backup.e2e.js || true + yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/onboarding.e2e.js || true echo "::endgroup::" echo "::group::attempt 3" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/backup.e2e.js || true + yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/onboarding.e2e.js || true echo "::endgroup::" echo "::group::attempt 4" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/backup.e2e.js || true - echo "::endgroup::" - - - name: Memory - run: | - df -h - top -l 1 | grep -E "^CPU|^Phys" - ps x -o rss,vsz,command | awk 'NR>1 {$1=int($1/1024)"M"; $2=int($2/1024)"M";}{ print ;}' - - - name: Test channels - uses: reactivecircus/android-emulator-runner@v2 - with: - api-level: 31 - cores: 1 - ram-size: 2048M - heap-size: 512M - disk-size: 2048M - profile: 5.4in FWVGA - avd-name: Pixel_API_31_AOSP - force-avd-creation: false - emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none -camera-front none -partition-size 2047 - arch: x86_64 - script: | - sleep 1 - adb root - echo "::group::attempt 1" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/channels.e2e.js || true - echo "::endgroup::" - echo "::group::attempt 2" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/channels.e2e.js || true - echo "::endgroup::" - echo "::group::attempt 3" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/channels.e2e.js || true - echo "::endgroup::" - echo "::group::attempt 4" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/channels.e2e.js || true - echo "::endgroup::" - - - name: Memory - run: | - df -h - top -l 1 | grep -E "^CPU|^Phys" - ps x -o rss,vsz,command | awk 'NR>1 {$1=int($1/1024)"M"; $2=int($2/1024)"M";}{ print ;}' - - - name: Test lightning - uses: reactivecircus/android-emulator-runner@v2 - with: - api-level: 31 - cores: 1 - ram-size: 2048M - heap-size: 512M - disk-size: 2048M - profile: 5.4in FWVGA - avd-name: Pixel_API_31_AOSP - force-avd-creation: false - emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none -camera-front none -partition-size 2047 - arch: x86_64 - script: | - sleep 1 - adb root - echo "::group::attempt 1" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/lightning.e2e.js || true - echo "::endgroup::" - echo "::group::attempt 2" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/lightning.e2e.js || true - echo "::endgroup::" - echo "::group::attempt 3" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/lightning.e2e.js || true - echo "::endgroup::" - echo "::group::attempt 4" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/lightning.e2e.js || true - echo "::endgroup::" - - - name: Memory - run: | - df -h - top -l 1 | grep -E "^CPU|^Phys" - ps x -o rss,vsz,command | awk 'NR>1 {$1=int($1/1024)"M"; $2=int($2/1024)"M";}{ print ;}' - - - name: Test lnurl - uses: reactivecircus/android-emulator-runner@v2 - with: - api-level: 31 - cores: 1 - ram-size: 2048M - heap-size: 512M - disk-size: 2048M - profile: 5.4in FWVGA - avd-name: Pixel_API_31_AOSP - force-avd-creation: false - emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none -camera-front none -partition-size 2047 - arch: x86_64 - script: | - sleep 1 - adb root - echo "::group::attempt 1" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/lnurl.e2e.js || true - echo "::endgroup::" - echo "::group::attempt 2" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/lnurl.e2e.js || true - echo "::endgroup::" - echo "::group::attempt 3" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/lnurl.e2e.js || true - echo "::endgroup::" - echo "::group::attempt 4" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/lnurl.e2e.js || true - echo "::endgroup::" - - - name: Memory - run: | - df -h - top -l 1 | grep -E "^CPU|^Phys" - ps x -o rss,vsz,command | awk 'NR>1 {$1=int($1/1024)"M"; $2=int($2/1024)"M";}{ print ;}' - - - name: Test numberpad - uses: reactivecircus/android-emulator-runner@v2 - with: - api-level: 31 - cores: 1 - ram-size: 2048M - heap-size: 512M - disk-size: 2048M - profile: 5.4in FWVGA - avd-name: Pixel_API_31_AOSP - force-avd-creation: false - emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none -camera-front none -partition-size 2047 - arch: x86_64 - script: | - sleep 1 - adb root - echo "::group::attempt 1" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/numberpad.e2e.js || true - echo "::endgroup::" - echo "::group::attempt 2" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/numberpad.e2e.js || true - echo "::endgroup::" - echo "::group::attempt 3" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/numberpad.e2e.js || true - echo "::endgroup::" - echo "::group::attempt 4" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/numberpad.e2e.js || true - echo "::endgroup::" - - - name: Memory - run: | - df -h - top -l 1 | grep -E "^CPU|^Phys" - ps x -o rss,vsz,command | awk 'NR>1 {$1=int($1/1024)"M"; $2=int($2/1024)"M";}{ print ;}' - - - name: Test onchain - uses: reactivecircus/android-emulator-runner@v2 - with: - api-level: 31 - cores: 1 - ram-size: 2048M - heap-size: 512M - disk-size: 2048M - profile: 5.4in FWVGA - avd-name: Pixel_API_31_AOSP - force-avd-creation: false - emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none -camera-front none -partition-size 2047 - arch: x86_64 - script: | - sleep 1 - adb root - echo "::group::attempt 1" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/onchain.e2e.js || true - echo "::endgroup::" - echo "::group::attempt 2" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/onchain.e2e.js || true - echo "::endgroup::" - echo "::group::attempt 3" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/onchain.e2e.js || true - echo "::endgroup::" - echo "::group::attempt 4" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/onchain.e2e.js || true - echo "::endgroup::" - - - name: Memory - run: | - df -h - top -l 1 | grep -E "^CPU|^Phys" - ps x -o rss,vsz,command | awk 'NR>1 {$1=int($1/1024)"M"; $2=int($2/1024)"M";}{ print ;}' - - - name: Test receive - uses: reactivecircus/android-emulator-runner@v2 - with: - api-level: 31 - cores: 1 - ram-size: 2048M - heap-size: 512M - disk-size: 2048M - profile: 5.4in FWVGA - avd-name: Pixel_API_31_AOSP - force-avd-creation: false - emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none -camera-front none -partition-size 2047 - arch: x86_64 - script: | - sleep 1 - adb root - echo "::group::attempt 1" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/receive.e2e.js || true - echo "::endgroup::" - echo "::group::attempt 2" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/receive.e2e.js || true - echo "::endgroup::" - echo "::group::attempt 3" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/receive.e2e.js || true - echo "::endgroup::" - echo "::group::attempt 4" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/receive.e2e.js || true - echo "::endgroup::" - - - name: Memory - run: | - df -h - top -l 1 | grep -E "^CPU|^Phys" - ps x -o rss,vsz,command | awk 'NR>1 {$1=int($1/1024)"M"; $2=int($2/1024)"M";}{ print ;}' - - - name: Test settings - uses: reactivecircus/android-emulator-runner@v2 - with: - api-level: 31 - cores: 1 - ram-size: 2048M - heap-size: 512M - disk-size: 2048M - profile: 5.4in FWVGA - avd-name: Pixel_API_31_AOSP - force-avd-creation: false - emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none -camera-front none -partition-size 2047 - arch: x86_64 - script: | - sleep 1 - adb root - echo "::group::attempt 1" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/settings.e2e.js || true - echo "::endgroup::" - echo "::group::attempt 2" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/settings.e2e.js || true - echo "::endgroup::" - echo "::group::attempt 3" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/settings.e2e.js || true - echo "::endgroup::" - echo "::group::attempt 4" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/settings.e2e.js || true - echo "::endgroup::" - - - name: Memory - run: | - df -h - top -l 1 | grep -E "^CPU|^Phys" - ps x -o rss,vsz,command | awk 'NR>1 {$1=int($1/1024)"M"; $2=int($2/1024)"M";}{ print ;}' - - - name: Test slashtags - uses: reactivecircus/android-emulator-runner@v2 - with: - api-level: 31 - cores: 1 - ram-size: 2048M - heap-size: 512M - disk-size: 2048M - profile: 5.4in FWVGA - avd-name: Pixel_API_31_AOSP - force-avd-creation: false - emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none -camera-front none -partition-size 2047 - arch: x86_64 - script: | - sleep 1 - adb root - echo "::group::attempt 1" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/slashtags.e2e.js || true - echo "::endgroup::" - echo "::group::attempt 2" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/slashtags.e2e.js || true - echo "::endgroup::" - echo "::group::attempt 3" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/slashtags.e2e.js || true - echo "::endgroup::" - echo "::group::attempt 4" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/slashtags.e2e.js || true - echo "::endgroup::" - - - name: Memory - run: | - df -h - top -l 1 | grep -E "^CPU|^Phys" - ps x -o rss,vsz,command | awk 'NR>1 {$1=int($1/1024)"M"; $2=int($2/1024)"M";}{ print ;}' - - - name: Test widgets - uses: reactivecircus/android-emulator-runner@v2 - with: - api-level: 31 - cores: 1 - ram-size: 2048M - heap-size: 512M - disk-size: 2048M - profile: 5.4in FWVGA - avd-name: Pixel_API_31_AOSP - force-avd-creation: false - emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none -camera-front none -partition-size 2047 - arch: x86_64 - script: | - sleep 1 - adb root - echo "::group::attempt 1" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/widgets.e2e.js || true - echo "::endgroup::" - echo "::group::attempt 2" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/widgets.e2e.js || true - echo "::endgroup::" - echo "::group::attempt 3" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/widgets.e2e.js || true - echo "::endgroup::" - echo "::group::attempt 4" - yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/widgets.e2e.js || true - echo "::endgroup::" + yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/onboarding.e2e.js || true + echo "::endgroup::" + + # - name: Test backup + # uses: reactivecircus/android-emulator-runner@v2 + # with: + # api-level: 31 + # cores: 1 + # ram-size: 2048M + # heap-size: 512M + # disk-size: 2048M + # profile: 5.4in FWVGA + # avd-name: Pixel_API_31_AOSP + # force-avd-creation: false + # emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none -camera-front none -partition-size 2047 + # arch: x86_64 + # script: | + # sleep 1 + # adb root + # echo "::group::attempt 1" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/backup.e2e.js || true + # echo "::endgroup::" + # echo "::group::attempt 2" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/backup.e2e.js || true + # echo "::endgroup::" + # echo "::group::attempt 3" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/backup.e2e.js || true + # echo "::endgroup::" + # echo "::group::attempt 4" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/backup.e2e.js || true + # echo "::endgroup::" + + # - name: Memory + # run: | + # df -h + # top -l 1 | grep -E "^CPU|^Phys" + # ps x -o rss,vsz,command | awk 'NR>1 {$1=int($1/1024)"M"; $2=int($2/1024)"M";}{ print ;}' + + # - name: Test channels + # uses: reactivecircus/android-emulator-runner@v2 + # with: + # api-level: 31 + # cores: 1 + # ram-size: 2048M + # heap-size: 512M + # disk-size: 2048M + # profile: 5.4in FWVGA + # avd-name: Pixel_API_31_AOSP + # force-avd-creation: false + # emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none -camera-front none -partition-size 2047 + # arch: x86_64 + # script: | + # sleep 1 + # adb root + # echo "::group::attempt 1" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/channels.e2e.js || true + # echo "::endgroup::" + # echo "::group::attempt 2" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/channels.e2e.js || true + # echo "::endgroup::" + # echo "::group::attempt 3" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/channels.e2e.js || true + # echo "::endgroup::" + # echo "::group::attempt 4" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/channels.e2e.js || true + # echo "::endgroup::" + + # - name: Memory + # run: | + # df -h + # top -l 1 | grep -E "^CPU|^Phys" + # ps x -o rss,vsz,command | awk 'NR>1 {$1=int($1/1024)"M"; $2=int($2/1024)"M";}{ print ;}' + + # - name: Test lightning + # uses: reactivecircus/android-emulator-runner@v2 + # with: + # api-level: 31 + # cores: 1 + # ram-size: 2048M + # heap-size: 512M + # disk-size: 2048M + # profile: 5.4in FWVGA + # avd-name: Pixel_API_31_AOSP + # force-avd-creation: false + # emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none -camera-front none -partition-size 2047 + # arch: x86_64 + # script: | + # sleep 1 + # adb root + # echo "::group::attempt 1" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/lightning.e2e.js || true + # echo "::endgroup::" + # echo "::group::attempt 2" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/lightning.e2e.js || true + # echo "::endgroup::" + # echo "::group::attempt 3" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/lightning.e2e.js || true + # echo "::endgroup::" + # echo "::group::attempt 4" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/lightning.e2e.js || true + # echo "::endgroup::" + + # - name: Memory + # run: | + # df -h + # top -l 1 | grep -E "^CPU|^Phys" + # ps x -o rss,vsz,command | awk 'NR>1 {$1=int($1/1024)"M"; $2=int($2/1024)"M";}{ print ;}' + + # - name: Test lnurl + # uses: reactivecircus/android-emulator-runner@v2 + # with: + # api-level: 31 + # cores: 1 + # ram-size: 2048M + # heap-size: 512M + # disk-size: 2048M + # profile: 5.4in FWVGA + # avd-name: Pixel_API_31_AOSP + # force-avd-creation: false + # emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none -camera-front none -partition-size 2047 + # arch: x86_64 + # script: | + # sleep 1 + # adb root + # echo "::group::attempt 1" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/lnurl.e2e.js || true + # echo "::endgroup::" + # echo "::group::attempt 2" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/lnurl.e2e.js || true + # echo "::endgroup::" + # echo "::group::attempt 3" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/lnurl.e2e.js || true + # echo "::endgroup::" + # echo "::group::attempt 4" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/lnurl.e2e.js || true + # echo "::endgroup::" + + # - name: Memory + # run: | + # df -h + # top -l 1 | grep -E "^CPU|^Phys" + # ps x -o rss,vsz,command | awk 'NR>1 {$1=int($1/1024)"M"; $2=int($2/1024)"M";}{ print ;}' + + # - name: Test numberpad + # uses: reactivecircus/android-emulator-runner@v2 + # with: + # api-level: 31 + # cores: 1 + # ram-size: 2048M + # heap-size: 512M + # disk-size: 2048M + # profile: 5.4in FWVGA + # avd-name: Pixel_API_31_AOSP + # force-avd-creation: false + # emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none -camera-front none -partition-size 2047 + # arch: x86_64 + # script: | + # sleep 1 + # adb root + # echo "::group::attempt 1" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/numberpad.e2e.js || true + # echo "::endgroup::" + # echo "::group::attempt 2" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/numberpad.e2e.js || true + # echo "::endgroup::" + # echo "::group::attempt 3" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/numberpad.e2e.js || true + # echo "::endgroup::" + # echo "::group::attempt 4" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/numberpad.e2e.js || true + # echo "::endgroup::" + + # - name: Memory + # run: | + # df -h + # top -l 1 | grep -E "^CPU|^Phys" + # ps x -o rss,vsz,command | awk 'NR>1 {$1=int($1/1024)"M"; $2=int($2/1024)"M";}{ print ;}' + + # - name: Test onchain + # uses: reactivecircus/android-emulator-runner@v2 + # with: + # api-level: 31 + # cores: 1 + # ram-size: 2048M + # heap-size: 512M + # disk-size: 2048M + # profile: 5.4in FWVGA + # avd-name: Pixel_API_31_AOSP + # force-avd-creation: false + # emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none -camera-front none -partition-size 2047 + # arch: x86_64 + # script: | + # sleep 1 + # adb root + # echo "::group::attempt 1" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/onchain.e2e.js || true + # echo "::endgroup::" + # echo "::group::attempt 2" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/onchain.e2e.js || true + # echo "::endgroup::" + # echo "::group::attempt 3" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/onchain.e2e.js || true + # echo "::endgroup::" + # echo "::group::attempt 4" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/onchain.e2e.js || true + # echo "::endgroup::" + + # - name: Memory + # run: | + # df -h + # top -l 1 | grep -E "^CPU|^Phys" + # ps x -o rss,vsz,command | awk 'NR>1 {$1=int($1/1024)"M"; $2=int($2/1024)"M";}{ print ;}' + + # - name: Test receive + # uses: reactivecircus/android-emulator-runner@v2 + # with: + # api-level: 31 + # cores: 1 + # ram-size: 2048M + # heap-size: 512M + # disk-size: 2048M + # profile: 5.4in FWVGA + # avd-name: Pixel_API_31_AOSP + # force-avd-creation: false + # emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none -camera-front none -partition-size 2047 + # arch: x86_64 + # script: | + # sleep 1 + # adb root + # echo "::group::attempt 1" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/receive.e2e.js || true + # echo "::endgroup::" + # echo "::group::attempt 2" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/receive.e2e.js || true + # echo "::endgroup::" + # echo "::group::attempt 3" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/receive.e2e.js || true + # echo "::endgroup::" + # echo "::group::attempt 4" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/receive.e2e.js || true + # echo "::endgroup::" + + # - name: Memory + # run: | + # df -h + # top -l 1 | grep -E "^CPU|^Phys" + # ps x -o rss,vsz,command | awk 'NR>1 {$1=int($1/1024)"M"; $2=int($2/1024)"M";}{ print ;}' + + # - name: Test settings + # uses: reactivecircus/android-emulator-runner@v2 + # with: + # api-level: 31 + # cores: 1 + # ram-size: 2048M + # heap-size: 512M + # disk-size: 2048M + # profile: 5.4in FWVGA + # avd-name: Pixel_API_31_AOSP + # force-avd-creation: false + # emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none -camera-front none -partition-size 2047 + # arch: x86_64 + # script: | + # sleep 1 + # adb root + # echo "::group::attempt 1" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/settings.e2e.js || true + # echo "::endgroup::" + # echo "::group::attempt 2" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/settings.e2e.js || true + # echo "::endgroup::" + # echo "::group::attempt 3" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/settings.e2e.js || true + # echo "::endgroup::" + # echo "::group::attempt 4" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/settings.e2e.js || true + # echo "::endgroup::" + + # - name: Memory + # run: | + # df -h + # top -l 1 | grep -E "^CPU|^Phys" + # ps x -o rss,vsz,command | awk 'NR>1 {$1=int($1/1024)"M"; $2=int($2/1024)"M";}{ print ;}' + + # - name: Test slashtags + # uses: reactivecircus/android-emulator-runner@v2 + # with: + # api-level: 31 + # cores: 1 + # ram-size: 2048M + # heap-size: 512M + # disk-size: 2048M + # profile: 5.4in FWVGA + # avd-name: Pixel_API_31_AOSP + # force-avd-creation: false + # emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none -camera-front none -partition-size 2047 + # arch: x86_64 + # script: | + # sleep 1 + # adb root + # echo "::group::attempt 1" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/slashtags.e2e.js || true + # echo "::endgroup::" + # echo "::group::attempt 2" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/slashtags.e2e.js || true + # echo "::endgroup::" + # echo "::group::attempt 3" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/slashtags.e2e.js || true + # echo "::endgroup::" + # echo "::group::attempt 4" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/slashtags.e2e.js || true + # echo "::endgroup::" + + # - name: Memory + # run: | + # df -h + # top -l 1 | grep -E "^CPU|^Phys" + # ps x -o rss,vsz,command | awk 'NR>1 {$1=int($1/1024)"M"; $2=int($2/1024)"M";}{ print ;}' + + # - name: Test widgets + # uses: reactivecircus/android-emulator-runner@v2 + # with: + # api-level: 31 + # cores: 1 + # ram-size: 2048M + # heap-size: 512M + # disk-size: 2048M + # profile: 5.4in FWVGA + # avd-name: Pixel_API_31_AOSP + # force-avd-creation: false + # emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none -camera-front none -partition-size 2047 + # arch: x86_64 + # script: | + # sleep 1 + # adb root + # echo "::group::attempt 1" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/widgets.e2e.js || true + # echo "::endgroup::" + # echo "::group::attempt 2" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/widgets.e2e.js || true + # echo "::endgroup::" + # echo "::group::attempt 3" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/widgets.e2e.js || true + # echo "::endgroup::" + # echo "::group::attempt 4" + # yarn e2e:test:android-release --record-videos all --take-screenshots all --record-logs all e2e/widgets.e2e.js || true + # echo "::endgroup::" - name: Memory run: | diff --git a/e2e/onboarding.e2e.js b/e2e/onboarding.e2e.js index f19782cdc..68c7d3796 100644 --- a/e2e/onboarding.e2e.js +++ b/e2e/onboarding.e2e.js @@ -65,7 +65,7 @@ d('Onboarding', () => { by.id('SeedContaider'), ).getAttributes(); await element(by.id('SeedContaider')).swipe('down'); - await element(by.id('NavigationClose')).tap(); + await element(by.id('NavigationClose')).atIndex(0).tap(); console.info('seed: ', seed); // get receing address diff --git a/src/screens/Onboarding/Slideshow.tsx b/src/screens/Onboarding/Slideshow.tsx index a862c8550..ddfb1f0f7 100644 --- a/src/screens/Onboarding/Slideshow.tsx +++ b/src/screens/Onboarding/Slideshow.tsx @@ -304,9 +304,6 @@ const Slideshow = ({ { - if (index !== slides.length - 1) { - return; - } navigation.navigate('Passphrase'); }} testID="Passphrase">