LayoutElementAssertionsProvider


class LayoutElementAssertionsProvider


Provides the main entry point into testing by exposing methods to find a layout element.

Summary

Public functions

LayoutElementAssertion

Finds an element that matches the given condition.

LayoutElementAssertion

Finds the top level element of the element tree added to this LayoutElementAssertionsProvider.

LayoutElementAssertionsProvider
withDynamicData(vararg dynamicDataPairs: DynamicDataPair<*>)

Injects the app state and/or platform data for evaluating the dynamic data applied on the layout element under testing.

Public constructors

LayoutElementAssertionsProvider

Added in 1.3.0-alpha09
LayoutElementAssertionsProvider(layout: LayoutElementBuilders.Layout)

LayoutElementAssertionsProvider

Added in 1.3.0-alpha09
LayoutElementAssertionsProvider(
    layoutRoot: LayoutElementBuilders.LayoutElement
)

Public functions

onElement

Added in 1.3.0-alpha09
fun onElement(matcher: LayoutElementMatcher): LayoutElementAssertion

Finds an element that matches the given condition.

onRoot

Added in 1.3.0-alpha09
fun onRoot(): LayoutElementAssertion

Finds the top level element of the element tree added to this LayoutElementAssertionsProvider.

withDynamicData

Added in 1.3.0-alpha09
fun withDynamicData(vararg dynamicDataPairs: DynamicDataPair<*>): LayoutElementAssertionsProvider

Injects the app state and/or platform data for evaluating the dynamic data applied on the layout element under testing.