I want to assert the activity is finished after clicking a button. eg: if the user clicked button with id R.id.finish, then the activity is finished.
I'm trying to look up apis with ActivitySenerio and Espresso, but none of these helps.
Ref:
I want to assert the activity is finished after clicking a button. eg: if the user clicked button with id R.id.finish, then the activity is finished.
I'm trying to look up apis with ActivitySenerio and Espresso, but none of these helps.
Ref:
Without ActivitySenerio:
With ActivitySenerio(Rule):