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