hasText

Returns a TestNodeMatcher that verifies if the given node text matches the exact text

It uses the attribute WidgetAttributes.Text to look for the text value. One example of Litho widget that relies on this attribute is the TextSpec. This means that you can use this matcher to verify the text used with any instance of Litho's Text.