Skip to content

Commit

Permalink
Tune test, add test execution on Android 34
Browse files Browse the repository at this point in the history
  • Loading branch information
max-kammerer committed Apr 8, 2024
1 parent fae161a commit bd1317b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
test:
strategy:
matrix:
arch: [[16, x86, ubuntu-latest], [19, x86, ubuntu-latest], [21, x86, ubuntu-latest], [23, x86, ubuntu-latest], [28, x86, ubuntu-latest], [30, x86_64, ubuntu-latest], [31, x86_64, ubuntu-latest], [32, x86_64, macos-latest], [33, x86_64, ubuntu-latest]]
arch: [[16, x86, ubuntu-latest], [19, x86, ubuntu-latest], [21, x86, ubuntu-latest], [24, x86, ubuntu-latest], [28, x86, ubuntu-latest], [30, x86_64, ubuntu-latest], [31, x86_64, ubuntu-latest], [32, x86_64, macos-latest], [33, x86_64, ubuntu-latest], [34, x86_64, ubuntu-latest]]
env:
ANDROID_EMULATOR_WAIT_TIME_BEFORE_KILL: 170
EMULATOR_API: ${{ matrix.arch[0] }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import android.os.Build
import android.os.Build.VERSION_CODES.KITKAT
import android.os.Build.VERSION_CODES.LOLLIPOP
import android.os.Build.VERSION_CODES.M
import android.os.Build.VERSION_CODES.N
import android.widget.Button
import android.widget.EditText
import androidx.test.filters.SdkSuppress
Expand Down Expand Up @@ -55,7 +56,7 @@ class AccessToPrivateFileTest(private val simpleFileName: String) :
@Test
fun openViaNewFile() {
//TODO investigate problem on LOLLIPOP and KITKAT with test framework
if (Build.VERSION.SDK_INT <= LOLLIPOP) return
if (Build.VERSION.SDK_INT <= N) return

device.wait(Until.findObject(By.textContains("new file")), LONG_TIMEOUT)?.click() ?: doFail("No dialog")
processEmulatorErrors()
Expand Down

0 comments on commit bd1317b

Please sign in to comment.