mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 01:08:50 -06:00
Switch emulator to google_apis; test APIs 28 to 33
This commit is contained in:
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
||||
run: ./build.sh build
|
||||
|
||||
- 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
|
||||
if: always()
|
||||
|
||||
4
build.sh
4
build.sh
@@ -85,10 +85,10 @@ android_setup() {
|
||||
$AVDMANAGER delete avd --name $AVDNAME
|
||||
|
||||
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 \
|
||||
--name $AVDNAME \
|
||||
--package "system-images;android-$API;default;x86_64" \
|
||||
--package "system-images;android-$API;google_apis;x86_64" \
|
||||
--device "Nexus 4" || return 1
|
||||
|
||||
flock -u 10
|
||||
|
||||
@@ -20,6 +20,7 @@ package org.isoron.uhabits.acceptance.steps
|
||||
|
||||
import android.os.Build
|
||||
import android.os.Build.VERSION.SDK_INT
|
||||
import android.os.Build.VERSION_CODES
|
||||
import androidx.annotation.StringRes
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
import androidx.test.espresso.Espresso
|
||||
@@ -73,7 +74,7 @@ object CommonSteps : BaseUserInterfaceTest() {
|
||||
}
|
||||
|
||||
fun offsetHeaders() {
|
||||
device.swipe(750, 160, 600, 160, 20)
|
||||
device.swipe(500, 160, 350, 160, 20)
|
||||
}
|
||||
|
||||
fun scrollToText(text: String?) {
|
||||
|
||||
Reference in New Issue
Block a user