WorieN
WorieN

Reputation: 1296

Espresso activity stack

I'm just start to writing tests on Espresso and I've been faced with a problem:

How can I pre-start activity when testing some another activity. For example I want to check if my activity finished when I pressed some button and the previous activity in stack is shown now. How can I check that?

Upvotes: 1

Views: 112

Answers (1)

satyajit
satyajit

Reputation: 1570

You can try using intented. Take a look at googles documentation for intents here and the sample code here

Upvotes: 1

Related Questions