ActiveDisplayScope

@IviExperimental(reasons = [])
class ActiveDisplayScope(displayId: DisplayId)

Scope which provides necessary data and useful routines for writing multi-display tests. It provides:

Example

       private val secondary: OnDisplayContext = ...

@Test
fun testSomething() {
...
onDisplay(secondary) {
onView(withId(R.id.ttivi_some_button)).inRoot(rootMatcher)
.check(matches(isDisplayed()))
.perform(click())
}
}
}

Constructors

Link copied to clipboard

Properties

Link copied to clipboard
val rootMatcher: Matcher<Root>

Root to obtain proper ViewInteraction in specific root.

Extensions

Link copied to clipboard

Prevents contraptions like: