GlanceNodeAssertionsProvider

interface GlanceNodeAssertionsProviderAny?, T : GlanceNode>
Known direct subclasses
GlanceAppWidgetUnitTest

Provides methods to enable you to test your logic of building Glance composable content in the runGlanceAppWidgetUnitTest scope.


Provides an entry point into testing exposing methods to find glance nodes

Summary

Public functions

GlanceNodeAssertionCollection

Finds all Glance nodes that matches the given condition.

GlanceNodeAssertion

Finds a Glance node that matches the given condition.

Public functions

onAllNodes

Added in 1.1.0
fun onAllNodes(matcher: GlanceNodeMatcher): GlanceNodeAssertionCollection

Finds all Glance nodes that matches the given condition.

Parameters
matcher: GlanceNodeMatcher

Matcher used for filtering

onNode

Added in 1.1.0
fun onNode(matcher: GlanceNodeMatcher): GlanceNodeAssertion

Finds a Glance node that matches the given condition.

Any subsequent operation on its result will expect exactly one element found and will throw AssertionError if none or more than one element is found.

Parameters
matcher: GlanceNodeMatcher

Matcher used for filtering