getComponentTestKey

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

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