Issue
I created android UI test with espresso and done Button click and opening an Activity. Now I want to validate whether opened correct activity or not.
Solution
Use espresso-intents to validate that.
The usage is:
intended(hasComponent(NewActivity.class.getName()));
You can read this thread for more details on that: Espresso - check which Activity is opened using intent on button press?
Answered By - Be_Negative
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.