diff --git a/jami-android/app/src/androidTest/java/cx/ring/client/wizard/AccountCreation.kt b/jami-android/app/src/androidTest/java/cx/ring/client/wizard/AccountCreation.kt index 0f767b3d4f42beff517471de4965aabdb51ffe6a..53ee6fa6a02d3d9188de8b512b9d212f63331397 100644 --- a/jami-android/app/src/androidTest/java/cx/ring/client/wizard/AccountCreation.kt +++ b/jami-android/app/src/androidTest/java/cx/ring/client/wizard/AccountCreation.kt @@ -321,8 +321,11 @@ class AccountCreation { } private fun skipBiometrics() { // Skip biometrics popup - val noThanksSrc = InstrumentationRegistry - .getInstrumentation().targetContext.getString(R.string.no_thanks) - onView(allOf(withText(noThanksSrc), isDisplayed())).perform(click()) + // only on P+ + if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.R) { + val noThanksSrc = InstrumentationRegistry + .getInstrumentation().targetContext.getString(R.string.no_thanks) + onView(allOf(withText(noThanksSrc), isDisplayed())).perform(click()) + } } }