Skip to content
Snippets Groups Projects
Commit 2d7a8a5c authored by Adrien Béraud's avatar Adrien Béraud
Browse files

tests: fix tests on API<30

Change-Id: I99c393e048cba24304afbe31c7308ab03b015503
parent c37bbfc6
No related branches found
No related tags found
No related merge requests found
......@@ -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())
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment