Compare commits

..

1 Commits

Author SHA1 Message Date
6f595eb2d6 ci: Instrumentation tests coverage in ci.
All checks were successful
Check PR code / BuildAndTestAndCoverage (pull_request) Successful in 28m31s
2025-03-22 14:27:37 +01:00

View File

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