Fix OnView.checkDoesNotExist()

matches() shouldn't be used for not exist case as per documentation:
"asserts that a view exists in the view hierarchy and is matched by
the given view matcher."
This commit is contained in:
Mateusz Markowicz 2021-11-09 15:51:36 +01:00
parent 233d304744
commit 05aea995e8
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@
import studio.forface.easygradle.dsl.*
import studio.forface.easygradle.dsl.android.*
libVersion = Version(1, 15, 4)
libVersion = Version(1, 15, 5)
plugins {
id("com.android.library")

View File

@ -346,7 +346,7 @@ class OnView : ConditionWatcher {
}
fun checkDoesNotExist() = apply {
viewInteraction(matches(CoreMatchers.`is`(doesNotExist())))
viewInteraction(doesNotExist())
}
fun checkNotDisplayed() = apply {