Compare commits

..

1 Commits

Author SHA1 Message Date
acc3f1c2ff ci: Instrumentation tests coverage in ci.
All checks were successful
Check PR code / BuildAndTestAndCoverage (pull_request) Successful in 30m41s
2025-03-22 16:10:29 +01:00

View File

@ -168,9 +168,10 @@ open class WithANRException {
Espresso.setFailureHandler { error, viewMatcher ->
takeScreenshot()
if (error.message!!.contains(rootViewWithoutFocusExceptionMsg) &&
error.message!!.contains(otherException) &&
anrCount < 3
if (error.message!!.contains(otherException)) {
handleAnrDialogue()
} else if (error.message!!.contains(rootViewWithoutFocusExceptionMsg) &&
anrCount < 20
) {
anrCount++
handleAnrDialogue()