addFilter

@CheckReturnValue
open fun addFilter(filter: ComponentInteractionFilter<*>): T(source)
@CheckReturnValue
open fun addFilter(filterType: Class<out ComponentInteractionFilter<*>>): T(source)

Applies a filter to this component.

Requirements

  • The filter must not be ComponentInteractionFilter.global.

  • The filter must be available via dependency injection.

See also