1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

Relations | Enhancement | Do not allow editing relations when object is locked (#2258)

This commit is contained in:
Evgenii Kozlov 2022-05-16 17:18:03 +03:00 committed by GitHub
parent bdf231af5d
commit c0bbae162a
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 585 additions and 158 deletions

View file

@ -8,7 +8,9 @@ import androidx.test.espresso.action.ViewActions.typeText
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers
import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
import androidx.test.espresso.matcher.ViewMatchers.withHint
import androidx.test.espresso.matcher.ViewMatchers.withId
import androidx.test.espresso.matcher.ViewMatchers.withInputType
import com.anytypeio.anytype.test_utils.utils.TestUtils.withRecyclerView
import com.anytypeio.anytype.test_utils.utils.espresso.HasChildViewWithText
import com.anytypeio.anytype.test_utils.utils.espresso.HasViewGroupChildViewWithText
@ -31,6 +33,14 @@ fun ViewInteraction.checkHasText(text: String) {
check(matches(ViewMatchers.withText(text)))
}
fun ViewInteraction.checkHasHintText(text: Int) {
check(matches(withHint(text)))
}
fun ViewInteraction.checkHasInputType(type: Int) {
check(matches(withInputType(type)))
}
fun ViewInteraction.checkIsSelected() {
check(matches(ViewMatchers.isSelected()))
}