Function

performFirstLinkClick

For a first link matching the [predicate] performs a click on it.

touchInputOnFirstSpecificLinkInText

fun touchInputOnFirstSpecificLinkInText() {
    // Example of clicking on a link in test
    composeTestRule.onNodeWithText("YOUR_TEXT_WITH_LINK").performFirstLinkClick {
        (it.item as? LinkAnnotation.Url)?.url == "YOUR_URL"
    }
}