Compare commits
1 Commits
6f595eb2d6
...
acc3f1c2ff
Author | SHA1 | Date | |
---|---|---|---|
acc3f1c2ff |
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user