componentTestKey

Returns this component's testKey or null if none is set.

Unlike testKey, this function can return a test key set on any Component, including container Components which resolve into LayoutNodes.

Unlike testKey, this function can also return test keys set on individual Components even when they are all resolved into a single InternalNode.