Compare commits
1 Commits
acc3f1c2ff
...
6f595eb2d6
Author | SHA1 | Date | |
---|---|---|---|
6f595eb2d6 |
@ -168,10 +168,9 @@ open class WithANRException {
|
||||
Espresso.setFailureHandler { error, viewMatcher ->
|
||||
|
||||
takeScreenshot()
|
||||
if (error.message!!.contains(otherException)) {
|
||||
handleAnrDialogue()
|
||||
} else if (error.message!!.contains(rootViewWithoutFocusExceptionMsg) &&
|
||||
anrCount < 20
|
||||
if (error.message!!.contains(rootViewWithoutFocusExceptionMsg) &&
|
||||
error.message!!.contains(otherException) &&
|
||||
anrCount < 3
|
||||
) {
|
||||
anrCount++
|
||||
handleAnrDialogue()
|
||||
|
Loading…
x
Reference in New Issue
Block a user