saket / Better-Link-Movement-Method

Attempts to improve how clickable links are detected, highlighted and handled in TextView
Apache License 2.0
780 stars 78 forks source link

Espresso Testing Support #36

Closed ibrahimyilmaz closed 4 years ago

ibrahimyilmaz commented 4 years ago

As an Android Developer, we would like to implement instrumentation test if we behave correctly or not. So we need to be able to fire the click. If possible can you add this functionality?

saket commented 4 years ago

Are you asking for custom ViewMatchers for Espresso that helps you test link clicks?

ibrahimyilmaz commented 4 years ago

Exactly how can we click the link?

saket commented 4 years ago

ViewActions has a few openLink*() functions for opening links. Have you tried using them?

ibrahimyilmaz commented 4 years ago

Oh thanks! Maybe we can put some information in the readme for someone who is not aware of openLink. I close the issue.