hasAttribute

fun <T> hasAttribute(key: AttributeKey<T>, value: T): TestNodeMatcher

Generic purpose test node filters based on the attributes system. This filter will match all TestNode whose Component has set value for the attribute with key key