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:
parent
bdf231af5d
commit
c0bbae162a
25 changed files with 585 additions and 158 deletions
|
@ -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()))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue