Switch emulator to google_apis; test APIs 28 to 33

feature/sync2^2
Alinson S. Xavier 3 years ago
parent 20dcc7929b
commit 5498ff8a87
Signed by: isoron
GPG Key ID: 0DA8E4B9E1109DCA

@ -17,7 +17,7 @@ jobs:
run: ./build.sh build run: ./build.sh build
- name: Run Android tests - name: Run Android tests
run: ./build.sh android-tests-parallel 23 24 25 26 27 28 30 31 run: ./build.sh android-tests-parallel 28 29 30 31 32 33
- name: Upload artifacts - name: Upload artifacts
if: always() if: always()

@ -85,10 +85,10 @@ android_setup() {
$AVDMANAGER delete avd --name $AVDNAME $AVDMANAGER delete avd --name $AVDNAME
log_info "Creating new Android virtual device (API $API)..." log_info "Creating new Android virtual device (API $API)..."
(echo "y" | $SDKMANAGER --install "system-images;android-$API;default;x86_64") || return 1 (echo "y" | $SDKMANAGER --install "system-images;android-$API;google_apis;x86_64") || return 1
$AVDMANAGER create avd \ $AVDMANAGER create avd \
--name $AVDNAME \ --name $AVDNAME \
--package "system-images;android-$API;default;x86_64" \ --package "system-images;android-$API;google_apis;x86_64" \
--device "Nexus 4" || return 1 --device "Nexus 4" || return 1
flock -u 10 flock -u 10

@ -20,6 +20,7 @@ package org.isoron.uhabits.acceptance.steps
import android.os.Build import android.os.Build
import android.os.Build.VERSION.SDK_INT import android.os.Build.VERSION.SDK_INT
import android.os.Build.VERSION_CODES
import androidx.annotation.StringRes import androidx.annotation.StringRes
import androidx.recyclerview.widget.RecyclerView import androidx.recyclerview.widget.RecyclerView
import androidx.test.espresso.Espresso import androidx.test.espresso.Espresso
@ -73,7 +74,7 @@ object CommonSteps : BaseUserInterfaceTest() {
} }
fun offsetHeaders() { fun offsetHeaders() {
device.swipe(750, 160, 600, 160, 20) device.swipe(500, 160, 350, 160, 20)
} }
fun scrollToText(text: String?) { fun scrollToText(text: String?) {

Loading…
Cancel
Save